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

@@ -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))