]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91873: Summarise deprecations in typing at the top level (GH-91864)
authorKen Jin <kenjin4096@gmail.com>
Fri, 29 Apr 2022 04:22:25 +0000 (11:22 +0700)
committerGitHub <noreply@github.com>
Fri, 29 Apr 2022 04:22:25 +0000 (12:22 +0800)
Doc/library/typing.rst

index 4635da7579ac75d116b1d049ca72ebc16ce207ed..d4a6f32aa36d2caee426e1ee7fa1f7ad33ca111d 100644 (file)
@@ -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                     |               |                   |                |
++----------------------------------+---------------+-------------------+----------------+