From 7fe40118f09c66b411033e5109ea4f0c28089731 Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Wed, 6 Nov 2024 13:30:08 +0100 Subject: [PATCH] Add required abstractmethod __len__ to Data --- src/pyaro/timeseries/Data.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pyaro/timeseries/Data.py b/src/pyaro/timeseries/Data.py index 68e5ea9..cfe28cb 100644 --- a/src/pyaro/timeseries/Data.py +++ b/src/pyaro/timeseries/Data.py @@ -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