]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-142349: Clarify lazy import filters have positional-only parameters (GH-144856)
authorBartosz Sławecki <bartosz@ilikepython.com>
Tue, 28 Jul 2026 09:14:51 +0000 (11:14 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2026 09:14:51 +0000 (11:14 +0200)
Doc/library/sys.rst

index 355621db2e18a18709792c2a6e8bde05d771a7f1..a2668a38c6b4a2fb2f0689f973f4b156fb6de87c 100644 (file)
@@ -1790,13 +1790,13 @@ always available. Unless explicitly noted otherwise, all variables are read-only
    callable or ``None`` to clear the filter.
 
    The filter function is called for every potentially lazy import to
-   determine whether it should actually be lazy. It must have the following
+   determine whether it should actually be lazy. It should have the following
    signature::
 
       def filter(importing_module: str, imported_module: str,
                  fromlist: tuple[str, ...] | None) -> bool
 
-   Where:
+   The function is called with three positional arguments:
 
    * *importing_module* is the name of the module doing the import
    * *imported_module* is the resolved name of the module being imported