mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
bpo-38291: Update 3.10 WhatsNew with typing.{io|re} DeprecationWarning (GH-27872)
This commit is contained in:
parent
0e8695ece0
commit
1a995b0cee
1 changed files with 13 additions and 0 deletions
|
@ -1401,6 +1401,13 @@ subclasses with the :func:`runtime_checkable` decorator
|
||||||
if they want runtime protocols.
|
if they want runtime protocols.
|
||||||
(Contributed by Yurii Karabas in :issue:`38908`)
|
(Contributed by Yurii Karabas in :issue:`38908`)
|
||||||
|
|
||||||
|
Importing from the ``typing.io`` and ``typing.re`` submodules will now emit
|
||||||
|
:exc:`DeprecationWarning`. These submodules have been deprecated since
|
||||||
|
Python 3.8 and will be removed in a future version of Python. Anything
|
||||||
|
belonging to those submodules should be imported directly from
|
||||||
|
:mod:`typing` instead.
|
||||||
|
(Contributed by Sebastian Rittau in :issue:`38291`)
|
||||||
|
|
||||||
unittest
|
unittest
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
@ -1696,6 +1703,12 @@ Deprecated
|
||||||
requires a :ref:`debug build of Python <debug-build>`.
|
requires a :ref:`debug build of Python <debug-build>`.
|
||||||
(Contributed by Victor Stinner in :issue:`44584`.)
|
(Contributed by Victor Stinner in :issue:`44584`.)
|
||||||
|
|
||||||
|
* Importing from the ``typing.io`` and ``typing.re`` submodules will now emit
|
||||||
|
:exc:`DeprecationWarning`. These submodules will be removed in a future version
|
||||||
|
of Python. Anything belonging to these submodules should be imported directly
|
||||||
|
from :mod:`typing` instead.
|
||||||
|
(Contributed by Sebastian Rittau in :issue:`38291`)
|
||||||
|
|
||||||
.. _whatsnew310-removed:
|
.. _whatsnew310-removed:
|
||||||
|
|
||||||
Removed
|
Removed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue