Skip to content

Commit 27f2f62

Browse files
bpo-38291: Update 3.10 WhatsNew with typing.{io|re} DeprecationWarning (GH-27872)
(cherry picked from commit 1a995b0) Co-authored-by: Ken Jin <[email protected]>
1 parent 57b321c commit 27f2f62

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,13 @@ subclasses with the :func:`runtime_checkable` decorator
13901390
if they want runtime protocols.
13911391
(Contributed by Yurii Karabas in :issue:`38908`)
13921392
1393+
Importing from the ``typing.io`` and ``typing.re`` submodules will now emit
1394+
:exc:`DeprecationWarning`. These submodules have been deprecated since
1395+
Python 3.8 and will be removed in a future version of Python. Anything
1396+
belonging to those submodules should be imported directly from
1397+
:mod:`typing` instead.
1398+
(Contributed by Sebastian Rittau in :issue:`38291`)
1399+
13931400
unittest
13941401
--------
13951402
@@ -1692,6 +1699,12 @@ Deprecated
16921699
requires a :ref:`debug build of Python <debug-build>`.
16931700
(Contributed by Victor Stinner in :issue:`44584`.)
16941701
1702+
* Importing from the ``typing.io`` and ``typing.re`` submodules will now emit
1703+
:exc:`DeprecationWarning`. These submodules will be removed in a future version
1704+
of Python. Anything belonging to these submodules should be imported directly
1705+
from :mod:`typing` instead.
1706+
(Contributed by Sebastian Rittau in :issue:`38291`)
1707+
16951708
.. _whatsnew310-removed:
16961709
16971710
Removed

0 commit comments

Comments
 (0)