summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>2021-08-23 17:13:51 (GMT)
committerGitHub <noreply@github.com>2021-08-23 17:13:51 (GMT)
commit1a995b0ceefdf7eb59963f3ab395c47d8da226e3 (patch)
tree7b6a84a2f9be0000fb4d50510a94d7508103b948
parent0e8695ece0d3569eeb1b89c91a1b0aa3d34f228e (diff)
downloadcpython-1a995b0ceefdf7eb59963f3ab395c47d8da226e3.zip
cpython-1a995b0ceefdf7eb59963f3ab395c47d8da226e3.tar.gz
cpython-1a995b0ceefdf7eb59963f3ab395c47d8da226e3.tar.bz2
bpo-38291: Update 3.10 WhatsNew with typing.{io|re} DeprecationWarning (GH-27872)
-rw-r--r--Doc/whatsnew/3.10.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index ae6ad9c..6040daa 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -1401,6 +1401,13 @@ subclasses with the :func:`runtime_checkable` decorator
if they want runtime protocols.
(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
--------
@@ -1696,6 +1703,12 @@ Deprecated
requires a :ref:`debug build of Python <debug-build>`.
(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:
Removed