[Python-checkins] bpo-44925: [docs] Fix confusing deprecation notice for typing.IO (GH-28004)

Fidget-Spinner webhook-mailer at python.org
Tue Aug 31 05:44:40 EDT 2021


https://github.com/python/cpython/commit/edae42f99f8153b92ccf365dbd1c2fa954f913b4
commit: edae42f99f8153b92ccf365dbd1c2fa954f913b4
branch: main
author: DonnaDia <37962843+DonnaDia at users.noreply.github.com>
committer: Fidget-Spinner <28750310+Fidget-Spinner at users.noreply.github.com>
date: 2021-08-31T17:44:27+08:00
summary:

bpo-44925: [docs] Fix confusing deprecation notice for typing.IO (GH-28004)

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 53cf5429b54c97..13760c19214ee7 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -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 ``[]``.



More information about the Python-checkins mailing list