diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2021-10-29 13:56:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 13:56:21 (GMT) |
commit | d9575218d7ab3d85b15ce3d4779660b9b724d343 (patch) | |
tree | 8a6a9f208b2c79850fb93db7151e2891609c2591 | |
parent | 8a77f59de51f1fd6062f0fefe73ee3059d714144 (diff) | |
download | cpython-d9575218d7ab3d85b15ce3d4779660b9b724d343.zip cpython-d9575218d7ab3d85b15ce3d4779660b9b724d343.tar.gz cpython-d9575218d7ab3d85b15ce3d4779660b9b724d343.tar.bz2 |
bpo-45655: Add ref to union type expressions at top of typing docs (GH-29309)
-rw-r--r-- | Doc/library/typing.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 6f501ec..eb95af3 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 |