[Python-checkins] bpo-46494: Mention the typing_extensions pkg in typing docs (GH-31260)

miss-islington webhook-mailer at python.org
Mon Mar 7 23:25:51 EST 2022


https://github.com/python/cpython/commit/e053f0e9f41791095a924e2aceaaa025a058ed57
commit: e053f0e9f41791095a924e2aceaaa025a058ed57
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-03-07T20:25:30-08:00
summary:

bpo-46494: Mention the typing_extensions pkg in typing docs (GH-31260)

(cherry picked from commit 8debeed3075bf4d7e568e65da16bec63cf276f4f)

Co-authored-by: Meer Suri <46469858+meersuri at users.noreply.github.com>

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 929749bc0b341..e7402affdadee 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -32,6 +32,10 @@ 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 are frequently added to the ``typing`` module.
+The `typing_extensions <https://pypi.org/project/typing-extensions/>`_ package
+provides backports of these new features to older versions of Python.
+
 .. _relevant-peps:
 
 Relevant PEPs



More information about the Python-checkins mailing list