Skip to content

Commit 1a995b0

Browse files
bpo-38291: Update 3.10 WhatsNew with typing.{io|re} DeprecationWarning (GH-27872)
1 parent 0e8695e commit 1a995b0

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
@@ -1401,6 +1401,13 @@ subclasses with the :func:`runtime_checkable` decorator
14011401
if they want runtime protocols.
14021402
(Contributed by Yurii Karabas in :issue:`38908`)
14031403
1404+
Importing from the ``typing.io`` and ``typing.re`` submodules will now emit
1405+
:exc:`DeprecationWarning`. These submodules have been deprecated since
1406+
Python 3.8 and will be removed in a future version of Python. Anything
1407+
belonging to those submodules should be imported directly from
1408+
:mod:`typing` instead.
1409+
(Contributed by Sebastian Rittau in :issue:`38291`)
1410+
14041411
unittest
14051412
--------
14061413
@@ -1696,6 +1703,12 @@ Deprecated
16961703
requires a :ref:`debug build of Python <debug-build>`.
16971704
(Contributed by Victor Stinner in :issue:`44584`.)
16981705
1706+
* Importing from the ``typing.io`` and ``typing.re`` submodules will now emit
1707+
:exc:`DeprecationWarning`. These submodules will be removed in a future version
1708+
of Python. Anything belonging to these submodules should be imported directly
1709+
from :mod:`typing` instead.
1710+
(Contributed by Sebastian Rittau in :issue:`38291`)
1711+
16991712
.. _whatsnew310-removed:
17001713
17011714
Removed

0 commit comments

Comments
 (0)