pkgutil, sys: make types more precise (#4536)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-09-16 01:38:27 -07:00
committed by GitHub
parent 1334840323
commit 8642d2aa97
2 changed files with 13 additions and 11 deletions

View File

@@ -5,7 +5,7 @@
import sys
from builtins import object as _object
from importlib.abc import MetaPathFinder
from importlib.abc import MetaPathFinder, PathEntryFinder
from types import FrameType, ModuleType, TracebackType
from typing import Any, Callable, Dict, List, NoReturn, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union, overload
@@ -42,7 +42,7 @@ meta_path: List[MetaPathFinder]
modules: Dict[str, ModuleType]
path: List[str]
path_hooks: List[Any] # TODO precise type; function, path to finder
path_importer_cache: Dict[str, Any] # TODO precise type
path_importer_cache: Dict[str, Optional[PathEntryFinder]]
platform: str
if sys.version_info >= (3, 9):
platlibdir: str