Skip to content

Commit edae42f

Browse files
authored
bpo-44925: [docs] Fix confusing deprecation notice for typing.IO (GH-28004)
1 parent 793f55b commit edae42f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/typing.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -1507,8 +1507,8 @@ Other concrete types
15071507
:func:`open`.
15081508

15091509
.. deprecated-removed:: 3.8 3.12
1510-
These types are also in the ``typing.io`` namespace, which was
1511-
never supported by type checkers and will be removed.
1510+
The ``typing.io`` namespace is deprecated and will be removed.
1511+
These types should be directly imported from ``typing`` instead.
15121512

15131513
.. class:: Pattern
15141514
Match
@@ -1521,8 +1521,8 @@ Other concrete types
15211521
``Match[bytes]``.
15221522

15231523
.. deprecated-removed:: 3.8 3.12
1524-
These types are also in the ``typing.re`` namespace, which was
1525-
never supported by type checkers and will be removed.
1524+
The ``typing.re`` namespace is deprecated and will be removed.
1525+
These types should be directly imported from ``typing`` instead.
15261526

15271527
.. deprecated:: 3.9
15281528
Classes ``Pattern`` and ``Match`` from :mod:`re` now support ``[]``.

0 commit comments

Comments
 (0)