Skip to content

Commit 4b81b9d

Browse files
committed
Clarified that this rule applies only to an import statement.
1 parent 750fa41 commit 4b81b9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/spec/qualifiers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ Importing ``Final`` Variables
212212
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
213213

214214
If a module declares a ``Final`` variable and another module imports that
215-
variable by name or by wildcard import, the imported symbol inherits the
216-
``Final`` type qualifier. Any attempt to assign a different value to this
217-
symbol should be flagged as an error by a type checker::
215+
variable in an import statement by name or wildcard, the imported symbol
216+
inherits the ``Final`` type qualifier. Any attempt to assign a different value
217+
to this symbol should be flagged as an error by a type checker::
218218

219219
# lib/submodule.py
220220
from typing import Final

0 commit comments

Comments
 (0)