From 0f5be049ed5b9cffc5c0bb049b834bab063999ba Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Thu, 3 Aug 2023 18:05:39 -0400 Subject: [PATCH] #1462 Suppress MyPy, who is Wrong. --- plug.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug.py b/plug.py index 480874e9..58939e3f 100644 --- a/plug.py +++ b/plug.py @@ -60,8 +60,8 @@ class Plugin(object): filename += name.encode(encoding='ascii', errors='replace').decode('utf-8').replace('.', '_') spec = importlib.util.spec_from_file_location(filename, loadfile) # type: ignore module = importlib.util.module_from_spec(spec) # type: ignore - spec.loader.exec_module(module) - + spec.loader.exec_module(module) # type: ignore + # These type-ignores will need to be looked at. MyPy is wrong. if getattr(module, 'plugin_start3', None): newname = module.plugin_start3(os.path.dirname(loadfile)) self.name = newname and str(newname) or name