File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -166,9 +166,8 @@ code that needs to detect lazy imports programmatically.
166166There are some restrictions on where the ``lazy `` keyword can be used. Lazy
167167imports are only permitted at module scope; using ``lazy `` inside a function,
168168class 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
You can’t perform that action at this time.
0 commit comments