Skip to content

Commit 1655650

Browse files
AlexWaygoodpull[bot]
authored andcommitted
bpo-45655: Add ref to union type expressions at top of typing docs (GH-29309)
1 parent c178b3d commit 1655650

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/typing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ annotations. These include:
6161
*Introducing* :data:`Annotated`
6262
* :pep:`604`: Allow writing union types as ``X | Y``
6363
*Introducing* :data:`types.UnionType` and the ability to use
64-
the binary-or operator ``|`` as syntactic sugar for a union of types
64+
the binary-or operator ``|`` to signify a
65+
:ref:`union of types<types-union>`
6566
* :pep:`612`: Parameter Specification Variables
6667
*Introducing* :class:`ParamSpec` and :data:`Concatenate`
6768
* :pep:`613`: Explicit Type Aliases

0 commit comments

Comments
 (0)