Fix sys.path_hooks type (#7049)

Docs: https://docs.python.org/3/library/sys.html#sys.path_hooks
This commit is contained in:
Nikita Sobolev
2022-01-27 18:21:02 +03:00
committed by GitHub
parent 56aa2088aa
commit 97c490aec0

View File

@@ -46,7 +46,7 @@ modules: dict[str, ModuleType]
if sys.version_info >= (3, 10):
orig_argv: list[str]
path: list[str]
path_hooks: list[Any] # TODO precise type; function, path to finder
path_hooks: list[Callable[[str], PathEntryFinder]]
path_importer_cache: dict[str, PathEntryFinder | None]
platform: str
if sys.version_info >= (3, 9):