Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
EricMarcus-ai committed Apr 3, 2024
1 parent 1ea6243 commit 1b5b1d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ahcore/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ def __len__(self) -> int:
return self.cumulative_sizes[-1]

@overload
def __getitem__(self, index: int) -> DlupDatasetSample: ...
def __getitem__(self, index: int) -> DlupDatasetSample:
...

@overload
def __getitem__(self, index: slice) -> list[DlupDatasetSample]: ...
def __getitem__(self, index: slice) -> list[DlupDatasetSample]:
...

def __getitem__(self, index: Union[int, slice]) -> DlupDatasetSample | list[DlupDatasetSample]:
"""Returns the sample at the given index."""
Expand Down

0 comments on commit 1b5b1d5

Please sign in to comment.