Skip to content

Commit d4ea69b

Browse files
committed
Rephrase more clearly
1 parent 923c8e7 commit d4ea69b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/reference/simple_stmts.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -949,9 +949,9 @@ Python versions older than 3.15 while using lazy imports in 3.15+::
949949

950950
Relative imports are resolved to their absolute name before the lookup, so
951951
: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::
952+
953+
For ``from``-style imports, the relevant name is the module following
954+
``from``, not the names of its members::
955955

956956
# In mypackage/mymodule.py
957957
__lazy_modules__ = ["mypackage", "mypackage.sub.utils"]

0 commit comments

Comments
 (0)