[Python-checkins] gh-91873: Summarise deprecations in typing at the top level (GH-91864)
Fidget-Spinner
webhook-mailer at python.org
Fri Apr 29 00:22:30 EDT 2022
https://github.com/python/cpython/commit/64113a4ba801126028505c50a7383f3e9df29573
commit: 64113a4ba801126028505c50a7383f3e9df29573
branch: main
author: Ken Jin <kenjin4096 at gmail.com>
committer: Fidget-Spinner <kenjin4096 at gmail.com>
date: 2022-04-29T12:22:25+08:00
summary:
gh-91873: Summarise deprecations in typing at the top level (GH-91864)
files:
M Doc/library/typing.rst
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 4635da7579ac7..d4a6f32aa36d2 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -36,6 +36,10 @@ 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.
+For a summary of deprecated features and a deprecation timeline, please see
+`Deprecation Timeline of Major Features`_.
+
+
.. _relevant-peps:
Relevant PEPs
@@ -2644,3 +2648,20 @@ Constant
(see :pep:`563`).
.. versionadded:: 3.5.2
+
+Deprecation Timeline of Major Features
+======================================
+
+Certain features in ``typing`` are deprecated and may be removed in a future
+version of Python. The following table summarizes major deprecations for your
+convenience. This is subject to change, and not all deprecations are listed.
+
++----------------------------------+---------------+-------------------+----------------+
+| Feature | Deprecated in | Projected removal | PEP/issue |
++==================================+===============+===================+================+
+| ``typing.io`` and ``typing.re`` | 3.8 | 3.12 | :issue:`38291` |
+| submodules | | | |
++----------------------------------+---------------+-------------------+----------------+
+| ``typing`` versions of standard | 3.9 | Undecided | :pep:`585` |
+| collections | | | |
++----------------------------------+---------------+-------------------+----------------+
More information about the Python-checkins
mailing list