Skip to content

Commit

Permalink
Add "in annotation expressions" to newer syntax explanation.
Browse files Browse the repository at this point in the history
  • Loading branch information
rchen152 committed Aug 9, 2024
1 parent f270102 commit 8d18706
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/spec/distributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ any).

Type checkers should treat stubs as if ``from __future__ import annotations`` is
enabled. In particular, forward references do not need to be quoted, and syntax
from newer versions than otherwise supported may be used. For example, the pipe
union syntax (``X | Y``) introduced in Python 3.10 may be used even before
Python 3.9 reaches end-of-life.
from newer versions than otherwise supported may be used in annotation
expressions. For example, the pipe union syntax (``X | Y``) introduced in Python
3.10 may be used even before Python 3.9 reaches end-of-life.

.. _stub-file-supported-constructs:

Expand Down

0 comments on commit 8d18706

Please sign in to comment.