mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-19 10:27:38 +03:00
#1462 Suppress MyPy, who is Wrong.
This commit is contained in:
parent
b75b6be23f
commit
0f5be049ed
4
plug.py
4
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user