summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-29 07:16:19 -0700
committerGitHub <noreply@github.com>2021-10-29 07:16:19 -0700
commit6742b0dfb61ebdb92a1ff633ec071734b5d39981 (patch)
treea83a7ba38ef2646463de2b87c0c45ad91d1eaa21
parent2c8a0027e5555e371c1293f26b3262000b8cfe8a (diff)
downloadcpython-git-6742b0dfb61ebdb92a1ff633ec071734b5d39981.tar.gz
bpo-45655: Add ref to union type expressions at top of typing docs (GH-29309)
(cherry picked from commit d9575218d7ab3d85b15ce3d4779660b9b724d343) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
-rw-r--r--Doc/library/typing.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index e5b0468399..7652c87827 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<types-union>`
* :pep:`612`: Parameter Specification Variables
*Introducing* :class:`ParamSpec` and :data:`Concatenate`
* :pep:`613`: Explicit Type Aliases