Skip to content

Commit

Permalink
Fix more stdlib typing issues with latest mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jan 24, 2021
1 parent 73eaf64 commit c0dbcc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tractor/_mp_fixup_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit c0dbcc5

Please sign in to comment.