diff --git a/kittens/runner.py b/kittens/runner.py index d69bf9a62..267cfc219 100644 --- a/kittens/runner.py +++ b/kittens/runner.py @@ -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) diff --git a/kitty/fonts/__init__.py b/kitty/fonts/__init__.py index a1733fc3c..414860ef6 100644 --- a/kitty/fonts/__init__.py +++ b/kitty/fonts/__init__.py @@ -14,6 +14,6 @@ class ListedFont(TypedDict): class FontFeature(str): def __new__(cls, name: str, parsed: bytes) -> 'FontFeature': - ans: FontFeature = str.__new__(cls, name) # type: ignore + ans: FontFeature = str.__new__(cls, name) ans.parsed = parsed # type: ignore return ans diff --git a/kitty/launch.py b/kitty/launch.py index ecf287724..2b4d500d8 100644 --- a/kitty/launch.py +++ b/kitty/launch.py @@ -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) diff --git a/kitty/marks.py b/kitty/marks.py index adcc0d1ca..91362d8dc 100644 --- a/kitty/marks.py +++ b/kitty/marks.py @@ -91,5 +91,5 @@ def marker_from_spec(ftype: str, spec: Union[str, Sequence[Tuple[int, str]]], fl path = spec if not os.path.isabs(path): path = os.path.join(config_dir, path) - return marker_from_function(runpy.run_path(path, run_name='__marker__')["marker"]) + return marker_from_function(runpy.run_path(path, run_name='__marker__')["marker"]) # type: ignore raise ValueError('Unknown marker type: {}'.format(ftype)) diff --git a/setup.py b/setup.py index 5c22d3ab9..9785d5a46 100755 --- a/setup.py +++ b/setup.py @@ -1028,7 +1028,7 @@ def package(args: Options, bundle_type: str) -> None: safe_makedirs(launcher_dir) build_launcher(args, launcher_dir, bundle_type) os.makedirs(os.path.join(libdir, 'logo')) - build_terminfo = runpy.run_path('build-terminfo', run_name='import_build') + build_terminfo = runpy.run_path('build-terminfo', run_name='import_build') # type: ignore for x in (libdir, os.path.join(ddir, 'share')): odir = os.path.join(x, 'terminfo') safe_makedirs(odir)