Skip to content

Commit ebd5309

Browse files
authored
set_lazy_imports_filter's importer arg can be None
1 parent b2d38dc commit ebd5309

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stdlib/sys/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ from typing_extensions import LiteralString, deprecated
1010

1111
_T = TypeVar("_T")
1212
_LazyImportMode: TypeAlias = Literal["normal", "all", "none"]
13-
_LazyImportFilter: TypeAlias = Callable[[str, str, tuple[str, ...] | None], bool]
13+
_LazyImportFilter: TypeAlias = Callable[[str | None, str, tuple[str, ...] | None], bool]
1414

1515
# see https://github.com/python/typeshed/issues/8513#issue-1333671093 for the rationale behind this alias
1616
_ExitCode: TypeAlias = str | int | None

0 commit comments

Comments
 (0)