mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 23:44:59 +02:00
Get type checking working with mypy 0.80
Add workaround for https://github.com/python/typeshed/issues/4964
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user