From 7888ef6f0135875d3411efa914988c1787073fa6 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 24 Jan 2021 13:37:48 -0500 Subject: [PATCH] Fix more stdlib typing issues with latest mypy --- tractor/_mp_fixup_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tractor/_mp_fixup_main.py b/tractor/_mp_fixup_main.py index 7869561..78d3e9f 100644 --- a/tractor/_mp_fixup_main.py +++ b/tractor/_mp_fixup_main.py @@ -67,7 +67,7 @@ def _fixup_main_from_name(mod_name: str) -> None: main_module = types.ModuleType("__mp_main__") main_content = runpy.run_module(mod_name, run_name="__mp_main__", - alter_sys=True) + alter_sys=True) # type: ignore main_module.__dict__.update(main_content) sys.modules['__main__'] = sys.modules['__mp_main__'] = main_module @@ -95,6 +95,6 @@ def _fixup_main_from_path(main_path: str) -> None: # old_main_modules.append(current_main) main_module = types.ModuleType("__mp_main__") main_content = runpy.run_path(main_path, - run_name="__mp_main__") + run_name="__mp_main__") # type: ignore main_module.__dict__.update(main_content) sys.modules['__main__'] = sys.modules['__mp_main__'] = main_module