]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45655: Add ref to union type expressions at top of typing docs (GH-29309)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Fri, 29 Oct 2021 13:56:21 +0000 (14:56 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Oct 2021 13:56:21 +0000 (21:56 +0800)
Doc/library/typing.rst

index 6f501ec136ee6e66a6347b8356b276bf330d1247..eb95af378d45fd043ae756c7736a2cc3a5bb50c5 100644 (file)
@@ -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<types-union>`
 * :pep:`612`: Parameter Specification Variables
      *Introducing* :class:`ParamSpec` and :data:`Concatenate`
 * :pep:`613`: Explicit Type Aliases