mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
bpo-45655: Add ref to union type expressions at top of typing docs (GH-29309)
(cherry picked from commit d9575218d7)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
2c8a0027e5
commit
6742b0dfb6
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue