mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
stdlib/2and3/pkgutil: Arg 1 to "iter_modules" should be List[str] (#625)
According to https://docs.python.org/2.7/library/pkgutil.html#pkgutil.iter_modules and https://docs.python.org/3/library/pkgutil.html#pkgutil.iter_modules: "path should be either None or a list of paths to look for modules in."
This commit is contained in:
committed by
Guido van Rossum
parent
ca318e444f
commit
83802c6724
@@ -24,7 +24,7 @@ def find_loader(fullname: str) -> Loader: ...
|
||||
def get_importer(path_item: str) -> Any: ... # TODO precise type
|
||||
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[str] = ...,
|
||||
def iter_modules(path: Optional[List[str]] = ...,
|
||||
prefix: str = ...) -> _YMFNI: ... # TODO precise type
|
||||
def walk_packages(path: Optional[str] = ..., prefix: str = ...,
|
||||
onerror: Optional[Callable[[str], None]] = ...) -> _YMFNI: ...
|
||||
|
||||
Reference in New Issue
Block a user