Skip to content

Commit 34f604b

Browse files
author
hauntsaninja
committed
[pkgutil] returns a List[str] usually
Yes, technically it returns whatever its first argument is if it isn't a list. Doing this because python/mypy#9454 (comment)
1 parent cb03e90 commit 34f604b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/pkgutil.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if sys.version_info >= (3, 6):
1818
else:
1919
_ModuleInfoLike = Tuple[Union[MetaPathFinder, PathEntryFinder], str, bool]
2020

21-
def extend_path(path: Iterable[str], name: str) -> Iterable[str]: ...
21+
def extend_path(path: List[str], name: str) -> List[str]: ...
2222

2323
class ImpImporter:
2424
def __init__(self, dirname: Optional[str] = ...) -> None: ...

0 commit comments

Comments
 (0)