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

JelleZijlstra webhook-mailer at python.org
Mon Mar 7 23:04:11 EST 2022


https://github.com/python/cpython/commit/8debeed3075bf4d7e568e65da16bec63cf276f4f
commit: 8debeed3075bf4d7e568e65da16bec63cf276f4f
branch: main
author: Meer Suri <46469858+meersuri at users.noreply.github.com>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-03-07T20:04:04-08:00
summary:

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

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index bfcbeb8c7e680..935a261362658 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