Skip to content

Commit

Permalink
Clarified that this rule applies only to an import statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictraut committed Mar 2, 2025
1 parent 750fa41 commit 4b81b9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/spec/qualifiers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ Importing ``Final`` Variables
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

# lib/submodule.py
from typing import Final
Expand Down

0 comments on commit 4b81b9d

Please sign in to comment.