mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user