From 731f568de5c76357a0d2dd335e661ad71bf109a1 Mon Sep 17 00:00:00 2001 From: Daniel Goldberg Date: Tue, 26 Nov 2019 16:47:43 +0200 Subject: [PATCH] Rename PluginType --- monkey/infection_monkey/utils/plugins/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/utils/plugins/plugin.py b/monkey/infection_monkey/utils/plugins/plugin.py index 872ac33db..d80ebccc1 100644 --- a/monkey/infection_monkey/utils/plugins/plugin.py +++ b/monkey/infection_monkey/utils/plugins/plugin.py @@ -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')] -Plugin_type = TypeVar('Plugin_type', bound='Plugin') +PluginType = TypeVar('PluginType', bound='Plugin') class Plugin(metaclass=ABCMeta): @@ -54,7 +54,7 @@ class Plugin(metaclass=ABCMeta): return objects @classmethod - def get_instances(cls) -> Sequence[Type[Plugin_type]]: + def get_instances(cls) -> Sequence[Type[PluginType]]: """ Returns the type objects from base_package_spec. base_package name and file must refer to the same package otherwise bad results