We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 923c8e7 commit d4ea69bCopy full SHA for d4ea69b
1 file changed
Doc/reference/simple_stmts.rst
@@ -949,9 +949,9 @@ Python versions older than 3.15 while using lazy imports in 3.15+::
949
950
Relative imports are resolved to their absolute name before the lookup, so
951
:attr:`!__lazy_modules__` must always contain fully qualified module names.
952
-For ``from``-style imports, the name to list is the module being imported
953
-*from* (the base module, left of the ``import`` keyword), not the names
954
-imported from it::
+
+For ``from``-style imports, the relevant name is the module following
+``from``, not the names of its members::
955
956
# In mypackage/mymodule.py
957
__lazy_modules__ = ["mypackage", "mypackage.sub.utils"]
0 commit comments