Skip to content

Commit e9c0d3b

Browse files
committed
gh-148588: Use 'container' not 'iterable' for __lazy_modules__
1 parent 6507959 commit e9c0d3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Doc/reference/datamodel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,9 +1124,9 @@ the following writable attributes:
11241124

11251125
.. attribute:: module.__lazy_modules__
11261126

1127-
An :term:`iterable` of fully qualified module name strings. When defined
1127+
A container of fully qualified module name strings. When defined
11281128
at module scope, any regular :keyword:`import` statement in that module whose
1129-
target module name appears in this iterable is treated as a
1129+
target module name appears in this container is treated as a
11301130
:ref:`lazy import <lazy-imports>`, as if the :keyword:`lazy` keyword had
11311131
been used. Imports inside functions, class bodies, or
11321132
:keyword:`try`/:keyword:`except`/:keyword:`finally` blocks are unaffected.

Doc/reference/simple_stmts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,8 +930,8 @@ Compatibility mode via ``__lazy_modules__``
930930

931931
As an alternative to using the :keyword:`lazy` keyword, a module can opt
932932
into lazy loading for specific imports by defining a module-level
933-
:attr:`~module.__lazy_modules__` variable. When present, it must be an
934-
:term:`iterable` of fully qualified module name strings. Any regular (non-``lazy``)
933+
:attr:`~module.__lazy_modules__` variable. When present, it must be a
934+
container of fully qualified module name strings. Any regular (non-``lazy``)
935935
:keyword:`import` statement at module scope whose target appears in
936936
:attr:`!__lazy_modules__` is treated as a lazy import, exactly as if the
937937
:keyword:`lazy` keyword had been used.

0 commit comments

Comments
 (0)