From 97c490aec0c3963640c7154944f380403aac561e Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 27 Jan 2022 18:21:02 +0300 Subject: [PATCH] Fix `sys.path_hooks` type (#7049) Docs: https://docs.python.org/3/library/sys.html#sys.path_hooks --- stdlib/sys.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/sys.pyi b/stdlib/sys.pyi index d42e1e0f9..f8e7b4886 100644 --- a/stdlib/sys.pyi +++ b/stdlib/sys.pyi @@ -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):