Remove no longer needed type: ignore

Looks like the type signature for runpy.run_path has finally been fixed
This commit is contained in:
Kovid Goyal
2021-06-09 08:30:22 +05:30
parent fc99d4d757
commit 9432f86e43
4 changed files with 4 additions and 4 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"]) # type: ignore
return marker_from_function(runpy.run_path(path, run_name='__marker__')["marker"])
raise ValueError('Unknown marker type: {}'.format(ftype))