]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44925: [docs] Fix confusing deprecation notice for typing.IO (GH-28004)
authorDonnaDia <37962843+DonnaDia@users.noreply.github.com>
Tue, 31 Aug 2021 09:44:27 +0000 (12:44 +0300)
committerGitHub <noreply@github.com>
Tue, 31 Aug 2021 09:44:27 +0000 (17:44 +0800)
Doc/library/typing.rst

index 53cf5429b54c97822d0dffa8fe1bea392d296c75..13760c19214ee7d60425d6fcbd0c17048902452a 100644 (file)
@@ -1507,8 +1507,8 @@ Other concrete types
    :func:`open`.
 
    .. deprecated-removed:: 3.8 3.12
-      These types are also in the ``typing.io`` namespace, which was
-      never supported by type checkers and will be removed.
+      The ``typing.io`` namespace is deprecated and will be removed.
+      These types should be directly imported from ``typing`` instead.
 
 .. class:: Pattern
            Match
@@ -1521,8 +1521,8 @@ Other concrete types
    ``Match[bytes]``.
 
    .. deprecated-removed:: 3.8 3.12
-      These types are also in the ``typing.re`` namespace, which was
-      never supported by type checkers and will be removed.
+      The ``typing.re`` namespace is deprecated and will be removed.
+      These types should be directly imported from ``typing`` instead.
 
    .. deprecated:: 3.9
       Classes ``Pattern`` and ``Match`` from :mod:`re` now support ``[]``.