remove unused noqa comments

This commit is contained in:
Anthony Sottile 2021-03-29 19:18:34 -07:00
parent 01d72d89b1
commit 8ba8bc9fed
2 changed files with 2 additions and 2 deletions

View file

@ -5,6 +5,6 @@ import sys
import setuptools
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src')) # noqa
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
setuptools.setup()

View file

@ -396,7 +396,7 @@ class PluginTypeManager(object):
@staticmethod
def _generate_call_function(method_name, optmanager, *args, **kwargs):
def generated_function(plugin): # noqa: D105
def generated_function(plugin):
method = getattr(plugin, method_name, None)
if method is not None and callable(method):
return method(optmanager, *args, **kwargs)