Skip to content

Commit

Permalink
Drop "annotation contexts."
Browse files Browse the repository at this point in the history
  • Loading branch information
rchen152 committed Aug 9, 2024
1 parent a448b4a commit eaaade2
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 in annotation contexts.
For example, the pipe union syntax (``X | Y``) introduced in Python 3.10 may be
used in annotation contexts even before Python 3.9 reaches end-of-life.
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.

.. _stub-file-supported-constructs:

Expand Down

0 comments on commit eaaade2

Please sign in to comment.