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:
@@ -114,7 +114,7 @@ def run_kitten(kitten: str, run_name: str = '__main__') -> None:
|
||||
for kitten in all_kitten_names():
|
||||
print(kitten, file=sys.stderr)
|
||||
raise SystemExit('No kitten named {}'.format(original_kitten_name))
|
||||
m = runpy.run_path(path, init_globals={'sys': sys, 'os': os}, run_name='__run_kitten__')
|
||||
m = runpy.run_path(path, init_globals={'sys': sys, 'os': os}, run_name='__run_kitten__') # type: ignore
|
||||
m['main'](sys.argv)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user