We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4958e4 commit 4de8b0bCopy full SHA for 4de8b0b
src/cleanvision/dataset/base_dataset.py
@@ -1,7 +1,7 @@
1
from __future__ import annotations
2
3
from collections.abc import Sized
4
-from typing import List, Union
+from typing import List, Union, Optional
5
6
from PIL import Image
7
@@ -20,7 +20,7 @@ def __len__(self) -> int:
20
"""Returns the number of examples in the dataset"""
21
raise NotImplementedError
22
23
- def __getitem__(self, item: Union[int, str]) -> Image.Image:
+ def __getitem__(self, item: Union[int, str]) -> Optional[Image.Image]:
24
"""Returns the image at a given index"""
25
26
0 commit comments