From bb0feec565f160257485e0fbfd4883fdbbfe1571 Mon Sep 17 00:00:00 2001 From: Heiko Klein Date: Mon, 27 May 2024 10:16:26 +0200 Subject: [PATCH] fixing return types --- src/pyaro/timeseries/AutoFilterReaderEngine.py | 6 +++--- src/pyaro/timeseries/Engine.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pyaro/timeseries/AutoFilterReaderEngine.py b/src/pyaro/timeseries/AutoFilterReaderEngine.py index 5bd2dd5..df6b68f 100644 --- a/src/pyaro/timeseries/AutoFilterReaderEngine.py +++ b/src/pyaro/timeseries/AutoFilterReaderEngine.py @@ -18,7 +18,7 @@ class AutoFilterReader(Reader): _unfiltered_variables. It adds also an overwritable classmethod supported_filters() listing all - possible filters. This is both used for the AutoEngine, and for the + possible filters. This is both used for the AutoFilterEngine, and for the check_filters method which should be used during initialization when filters are given. @@ -97,14 +97,14 @@ def data(self, varname) -> Data: class AutoFilterEngine(Engine): - """The AutoEngine class implements the supported_filters and + """The AutoFilterEngine class implements the supported_filters and args method using introspection from the corresponding reader-class. The reader_class method needs therefore to be implemented by this class. """ @abc.abstractmethod - def reader_class(self) -> Reader: + def reader_class(self) -> AutoFilterReader: """return the class of the corresponding reader :return: the class returned from open diff --git a/src/pyaro/timeseries/Engine.py b/src/pyaro/timeseries/Engine.py index 010ffd3..6610293 100644 --- a/src/pyaro/timeseries/Engine.py +++ b/src/pyaro/timeseries/Engine.py @@ -24,7 +24,7 @@ def args(self) -> list[str]: @property @abc.abstractmethod - def supported_filters(self) -> [str]: + def supported_filters(self) -> list[str]: """The class-names of the supported filters by this reader. If the reader is called with a filter which is not a instance of this class,