diff options
Diffstat (limited to 'src/flake8/plugins')
| -rw-r--r-- | src/flake8/plugins/manager.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/flake8/plugins/manager.py b/src/flake8/plugins/manager.py index 52b658c..80a9ef2 100644 --- a/src/flake8/plugins/manager.py +++ b/src/flake8/plugins/manager.py @@ -25,7 +25,7 @@ class Plugin(object): """Wrap an EntryPoint from setuptools and other logic.""" def __init__(self, name, entry_point): - """"Initialize our Plugin. + """Initialize our Plugin. :param str name: Name of the entry-point as it was registered with setuptools. @@ -97,7 +97,7 @@ class Plugin(object): @property def plugin(self): - """The loaded (and cached) plugin associated with the entry-point. + """Load and return the plugin associated with the entry-point. This property implicitly loads the plugin and then caches it. """ @@ -372,8 +372,7 @@ class PluginTypeManager(object): @staticmethod def _generate_call_function(method_name, optmanager, *args, **kwargs): - def generated_function(plugin): - """Function that attempts to call a specific method on a plugin.""" + def generated_function(plugin): # noqa: D105 method = getattr(plugin, method_name, None) if (method is not None and isinstance(method, collections.Callable)): |
