pkgutils.walk_packages takes optional list of str for path (#1725)

This commit is contained in:
Kenny Do
2017-11-09 05:57:29 -08:00
committed by Matthias Kramm
parent eaf8972e48
commit 26ea6c0740

View File

@@ -26,6 +26,6 @@ def get_loader(module_or_name: str) -> Loader: ...
def iter_importers(fullname: str = ...) -> Generator[Any, None, None]: ... # TODO precise type
def iter_modules(path: Optional[List[str]] = ...,
prefix: str = ...) -> _YMFNI: ... # TODO precise type
def walk_packages(path: Optional[str] = ..., prefix: str = ...,
def walk_packages(path: Optional[List[str]] = ..., prefix: str = ...,
onerror: Optional[Callable[[str], None]] = ...) -> _YMFNI: ...
def get_data(package: str, resource: str) -> Optional[bytes]: ...