Skip to content

Commit 7900e32

Browse files
johnslavikhugovk
andauthored
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 5f73065 commit 7900e32

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Doc/reference/simple_stmts.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,8 @@ See :pep:`810` for the full specification of lazy imports.
922922

923923
.. _lazy-modules-compat:
924924

925-
Compatibility mode via ``__lazy_modules__``
926-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
925+
Compatibility via ``__lazy_modules__``
926+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
927927

928928
.. index::
929929
single: __lazy_modules__
@@ -938,7 +938,7 @@ container of fully qualified module name strings. Any regular (non-``lazy``)
938938

939939
This provides a way to enable lazy loading for specific dependencies without
940940
changing individual ``import`` statements. This is useful when supporting
941-
Python versions older than 3.15 while leveraging lazy imports on 3.15+::
941+
Python versions older than 3.15 while using lazy imports in 3.15+::
942942

943943
__lazy_modules__ = ["json", "pathlib"]
944944

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function, class body, or ``try``/``except``/``finally`` block raises a
183183
raise :exc:`SyntaxError`).
184184

185185
For code that cannot use the ``lazy`` keyword directly (for example, when
186-
supporting Python versions older than 3.15 while still leveraging lazy
186+
supporting Python versions older than 3.15 while still using lazy
187187
imports on 3.15+), a module can define
188188
:attr:`~module.__lazy_modules__` as a container of fully qualified module
189189
name strings. Regular ``import`` statements for those modules are then treated

Misc/NEWS.d/3.15.0a8.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ dealing with contradictions in ``make_bottom``.
185185
.. nonce: 6wDI6S
186186
.. section: Core and Builtins
187187
188-
Ensure ``-X lazy_imports=none``` and ``PYTHON_LAZY_IMPORTS=none``` override
189-
:attr:`module.__lazy_modules__`. Patch by Hugo van Kemenade.
188+
Ensure ``-X lazy_imports=none`` and ``PYTHON_LAZY_IMPORTS=none`` override
189+
:attr:`~module.__lazy_modules__`. Patch by Hugo van Kemenade.
190190

191191
..
192192

0 commit comments

Comments
 (0)