From dcad8fe6f1649ea5b8c0d2b568ff6cbf707e67cb Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 29 Oct 2021 13:13:14 +0100 Subject: [PATCH] Add ref to union-type expressions at top of typing docs --- Doc/library/typing.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 6f501ec136ee6e..eb95af378d45fd 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -61,7 +61,8 @@ annotations. These include: *Introducing* :data:`Annotated` * :pep:`604`: Allow writing union types as ``X | Y`` *Introducing* :data:`types.UnionType` and the ability to use - the binary-or operator ``|`` as syntactic sugar for a union of types + the binary-or operator ``|`` to signify a + :ref:`union of types` * :pep:`612`: Parameter Specification Variables *Introducing* :class:`ParamSpec` and :data:`Concatenate` * :pep:`613`: Explicit Type Aliases