Skip to content

Commit 16c4e13

Browse files
Allow __import__ to take None for the fromlist parameter (#14790)
1 parent 810433f commit 16c4e13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/_frozen_importlib.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __import__(
1313
name: str,
1414
globals: Mapping[str, object] | None = None,
1515
locals: Mapping[str, object] | None = None,
16-
fromlist: Sequence[str] = (),
16+
fromlist: Sequence[str] | None = (),
1717
level: int = 0,
1818
) -> ModuleType: ...
1919
def spec_from_loader(

stdlib/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ def __import__(
20152015
name: str,
20162016
globals: Mapping[str, object] | None = None,
20172017
locals: Mapping[str, object] | None = None,
2018-
fromlist: Sequence[str] = (),
2018+
fromlist: Sequence[str] | None = (),
20192019
level: int = 0,
20202020
) -> types.ModuleType: ...
20212021
def __build_class__(func: Callable[[], CellType | Any], name: str, /, *bases: Any, metaclass: Any = ..., **kwds: Any) -> Any: ...

0 commit comments

Comments
 (0)