Skip to content

Commit 3e670c3

Browse files
[3.15] gh-142349: Clarify lazy import filters have positional-only parameters (GH-144856) (GH-154808)
(cherry picked from commit 66eb823) Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
1 parent 80e6fa8 commit 3e670c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/sys.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,13 +1790,13 @@ always available. Unless explicitly noted otherwise, all variables are read-only
17901790
callable or ``None`` to clear the filter.
17911791

17921792
The filter function is called for every potentially lazy import to
1793-
determine whether it should actually be lazy. It must have the following
1793+
determine whether it should actually be lazy. It should have the following
17941794
signature::
17951795

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

1799-
Where:
1799+
The function is called with three positional arguments:
18001800

18011801
* *importing_module* is the name of the module doing the import
18021802
* *imported_module* is the resolved name of the module being imported

0 commit comments

Comments
 (0)