Rename PluginType

This commit is contained in:
Daniel Goldberg 2019-11-26 16:47:43 +02:00
parent 6dca7c7764
commit 731f568de5
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ def _get_candidate_files(base_package_file):
return [basename(f)[:-3] for f in files if isfile(f) and not f.endswith('__init__.py')] return [basename(f)[:-3] for f in files if isfile(f) and not f.endswith('__init__.py')]
Plugin_type = TypeVar('Plugin_type', bound='Plugin') PluginType = TypeVar('PluginType', bound='Plugin')
class Plugin(metaclass=ABCMeta): class Plugin(metaclass=ABCMeta):
@ -54,7 +54,7 @@ class Plugin(metaclass=ABCMeta):
return objects return objects
@classmethod @classmethod
def get_instances(cls) -> Sequence[Type[Plugin_type]]: def get_instances(cls) -> Sequence[Type[PluginType]]:
""" """
Returns the type objects from base_package_spec. Returns the type objects from base_package_spec.
base_package name and file must refer to the same package otherwise bad results base_package name and file must refer to the same package otherwise bad results