Skip to content

Commit 8695c09

Browse files
authored
type-check in hf_dataset.py
1 parent 432f30f commit 8695c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cleanvision/dataset/hf_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __len__(self) -> int:
2929

3030
def __getitem__(self, item: Union[int, str]) -> Optional[Image.Image]:
3131
try:
32-
image = self._data[item][self._image_key]
32+
image: Image.Image = self._data[item][self._image_key]
3333
return image
3434
except Exception as e:
3535
print(f"Could not load image at index: {item}\n", e)

0 commit comments

Comments
 (0)