From 8201a7afc7d006e68477d80054c4f878fcd1e74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Fri, 16 Oct 2020 21:39:44 -0300 Subject: [PATCH 1/2] Document TypeAlias PEP From 11fe31d3f7a2882bc489a0afdc5a3cdb1986b35f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Fri, 16 Oct 2020 21:40:02 -0300 Subject: [PATCH 2/2] Document TypeAlias PEP --- Doc/library/typing.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 5fb78bbde69b1c..402dd24fde6e08 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