From a763bc86e34068d95a08aef97187e285bcd8bdcb Mon Sep 17 00:00:00 2001 From: meersuri Date: Thu, 10 Feb 2022 21:41:49 +0800 Subject: [PATCH 1/4] Mention the typing_extensions pkg in typing docs --- Doc/library/typing.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 94a46b01a1a8c0..c0fe656c1cb96b 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -32,6 +32,11 @@ In the function ``greeting``, the argument ``name`` is expected to be of type :class:`str` and the return type :class:`str`. Subtypes are accepted as arguments. +New features have been added to the typing module in each major version of +Python. The `typing_extensions `_ +package provides backports to all supported versions of Python 3 for almost +all of these features. + .. _relevant-peps: Relevant PEPs From d6bded3c40452b857353ded524f61b6edf103340 Mon Sep 17 00:00:00 2001 From: meersuri Date: Fri, 11 Feb 2022 22:01:54 +0800 Subject: [PATCH 2/4] Clarify the description of typing_extensions --- Doc/library/typing.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index c0fe656c1cb96b..4e3bf9ac2513d0 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -32,10 +32,8 @@ In the function ``greeting``, the argument ``name`` is expected to be of type :class:`str` and the return type :class:`str`. Subtypes are accepted as arguments. -New features have been added to the typing module in each major version of -Python. The `typing_extensions `_ -package provides backports to all supported versions of Python 3 for almost -all of these features. +The `typing_extensions `_ package +provides backports of new ``typing`` features to older versions of Python. .. _relevant-peps: From 155f1ac48121dcfeaee22ed27e4016603c0e3e1f Mon Sep 17 00:00:00 2001 From: meersuri Date: Sat, 19 Feb 2022 12:53:45 +0800 Subject: [PATCH 3/4] Make the python version part more explicit --- Doc/library/typing.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 4e3bf9ac2513d0..aaee79ce84379c 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -32,6 +32,7 @@ In the function ``greeting``, the argument ``name`` is expected to be of type :class:`str` and the return type :class:`str`. Subtypes are accepted as arguments. +New features have been added to the typing module in each version of Python. The `typing_extensions `_ package provides backports of new ``typing`` features to older versions of Python. From 278c1774adecc191df068c2577a5da502f56145c Mon Sep 17 00:00:00 2001 From: meersuri Date: Wed, 2 Mar 2022 23:06:01 +0800 Subject: [PATCH 4/4] Update wording --- Doc/library/typing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index aaee79ce84379c..3941906da375bf 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -32,9 +32,9 @@ In the function ``greeting``, the argument ``name`` is expected to be of type :class:`str` and the return type :class:`str`. Subtypes are accepted as arguments. -New features have been added to the typing module in each version of Python. +New features are frequently added to the ``typing`` module. The `typing_extensions `_ package -provides backports of new ``typing`` features to older versions of Python. +provides backports of these new features to older versions of Python. .. _relevant-peps: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy