diff options
author | Andre Delfino <adelfino@gmail.com> | 2020-10-17 02:34:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-17 02:34:01 (GMT) |
commit | 975d10a4f8f5d99b01d02fc5f99305a86827f28e (patch) | |
tree | 58a8cb4d67477c7e5d4c101968c64ef0d5e4009d /Doc | |
parent | a22a19f3548f6064035e7c59a19cda1e9506db92 (diff) | |
download | cpython-975d10a4f8f5d99b01d02fc5f99305a86827f28e.zip cpython-975d10a4f8f5d99b01d02fc5f99305a86827f28e.tar.gz cpython-975d10a4f8f5d99b01d02fc5f99305a86827f28e.tar.bz2 |
[doc] Add mentions of PEP 613 (TypeAlias) to docs (GH-22733)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/typing.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 5fb78bb..402dd24f 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -18,7 +18,7 @@ -------------- This module provides runtime support for type hints as specified by -:pep:`484`, :pep:`526`, :pep:`544`, :pep:`586`, :pep:`589`, and :pep:`591`. +:pep:`484`, :pep:`526`, :pep:`544`, :pep:`586`, :pep:`589`, :pep:`591`, and :pep:`613`. The most fundamental support consists of the types :data:`Any`, :data:`Union`, :data:`Tuple`, :data:`Callable`, :class:`TypeVar`, and :class:`Generic`. For full specification please see :pep:`484`. For @@ -500,6 +500,8 @@ These can be used as types in annotations and do not support ``[]``. Factors: TypeAlias = list[int] + See :pep:`613` for more details about explicit type aliases. + .. versionadded:: 3.10 Special forms |