Skip to content

Commit 7995d56

Browse files
committed
Combine two very similar sentences together.
1 parent 909b69a commit 7995d56

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,8 @@ code that needs to detect lazy imports programmatically.
166166
There are some restrictions on where the ``lazy`` keyword can be used. Lazy
167167
imports are only permitted at module scope; using ``lazy`` inside a function,
168168
class body, or ``try``/``except``/``finally`` block raises a :exc:`SyntaxError`.
169-
Star imports cannot be lazy (``lazy from module import *`` is a syntax error),
170-
and future imports cannot be lazy either (``lazy from __future__ import ...``
171-
raises :exc:`SyntaxError`).
169+
Neither star imports nor future imports can be lazy (``lazy from module import *``
170+
and ``lazy from __future__ import ...`` both raise :exc:`SyntaxError`).
172171

173172
.. seealso:: :pep:`810` for the full specification and rationale.
174173

0 commit comments

Comments
 (0)