Skip to content

Commit

Permalink
PEP 747: fix rst syntax (#4004)
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm authored Sep 27, 2024
1 parent cb97c7c commit 2af9ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peps/pep-0747.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ For example, if a static type checker encounters the expression ``str | None``,
it may normally evaluate its type as ``UnionType`` because it produces a
runtime value that is an instance of ``types.UnionType``. However, because
this expression is a valid type expression, it is also assignable to the
type ``TypeForm[str | None]``:
type ``TypeForm[str | None]``::

v1_actual: UnionType = str | None # OK
v1_type_form: TypeForm[str | None] = str | None # OK
Expand Down

0 comments on commit 2af9ffd

Please sign in to comment.