Get type checking working with mypy 0.80

Add workaround for https://github.com/python/typeshed/issues/4964
This commit is contained in:
Kovid Goyal
2021-01-23 09:25:31 +05:30
parent b823af00ff
commit 714d64c417
5 changed files with 5 additions and 5 deletions

View File

@@ -207,7 +207,7 @@ def load_watch_modules(watchers: Sequence[str]) -> Optional[Watchers]:
ans = Watchers()
for path in watchers:
path = resolve_custom_file(path)
m = runpy.run_path(path, run_name='__kitty_watcher__')
m = runpy.run_path(path, run_name='__kitty_watcher__') # type: ignore
w = m.get('on_close')
if callable(w):
ans.on_close.append(w)