Skip to content

Commit

Permalink
Add required abstractmethod __len__ to Data
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed Nov 6, 2024
1 parent 85c0d4e commit 7fe4011
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pyaro/timeseries/Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ def slice(self, index): # -> Self: for 3.11
def __getitem__(self, key):
return self.slice(key)

@abc.abstractmethod
def __len__(self) -> int:
pass

@property
def variable(self) -> str:
"""Variable name for all the data
Expand Down

0 comments on commit 7fe4011

Please sign in to comment.