Skip to content

Commit

Permalink
updated docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaenzig committed Dec 6, 2024
1 parent daab418 commit c1adf75
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/eva/core/data/datasets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,14 @@ def __getitem__(self, index: int):
"""Retrieves the item at the given index.
Args:
index (int): Index
index: Index of the item to retrieve.
Returns:
Any: The data at the given index
The data at the given index.
"""
raise NotImplementedError

@abc.abstractmethod
def __len__(self) -> int:
"""Returns the length of the dataset.
Returns:
int: Length of the dataset
"""
"""Returns the length of the dataset."""
raise NotImplementedError

0 comments on commit c1adf75

Please sign in to comment.