mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-44925: [docs] Fix confusing deprecation notice for typing.IO (GH-28004)
This commit is contained in:
parent
793f55bde9
commit
edae42f99f
1 changed files with 4 additions and 4 deletions
|
@ -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 ``[]``.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue