Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions improver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from abc import ABC, abstractmethod
from collections.abc import Iterable
from importlib.metadata import PackageNotFoundError, version
from typing import Any

try:
__version__ = version("improver")
Expand All @@ -21,7 +22,7 @@ class BasePlugin(ABC):
method by redirecting to __call__.
"""

def __call__(self, *args, **kwargs):
def __call__(self, *args, **kwargs) -> Any:
"""Makes subclasses callable to use process
Args:
*args:
Expand All @@ -34,7 +35,7 @@ def __call__(self, *args, **kwargs):
return self.process(*args, **kwargs)

@abstractmethod
def process(self, *args, **kwargs):
def process(self, *args, **kwargs) -> Any:
"""Abstract class for rest to implement."""
pass

Expand All @@ -44,7 +45,7 @@ class PostProcessingPlugin(BasePlugin):
Makes generalised changes to metadata relating to post-processing.
"""

def __call__(self, *args, **kwargs):
def __call__(self, *args, **kwargs) -> Any:
"""Makes subclasses callable to use process
Args:
*args:
Expand Down