Skip to content

Commit

Permalink
fixing return types
Browse files Browse the repository at this point in the history
  • Loading branch information
heikoklein committed May 27, 2024
1 parent 628f3bd commit bb0feec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/pyaro/timeseries/AutoFilterReaderEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/pyaro/timeseries/Engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bb0feec

Please sign in to comment.