Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ always available. Unless explicitly noted otherwise, all variables are read-only
signature::

def filter(importing_module: str, imported_module: str,
fromlist: tuple[str, ...] | None) -> bool
fromlist: tuple[str, ...] | None, /) -> bool

Where:

Expand All @@ -1792,6 +1792,8 @@ always available. Unless explicitly noted otherwise, all variables are read-only
* *fromlist* is the tuple of names being imported (for ``from ... import``
statements), or ``None`` for regular imports

and all of them are positional arguments.
Comment thread
johnslavik marked this conversation as resolved.
Outdated

The filter should return ``True`` to allow the import to be lazy, or
``False`` to force an eager import.

Expand Down
Loading