[Python-checkins] bpo-38291: Update 3.10 WhatsNew with typing.{io|re} DeprecationWarning (GH-27872)
miss-islington
webhook-mailer at python.org
Mon Aug 23 13:32:40 EDT 2021
https://github.com/python/cpython/commit/27f2f62ad490afc8e4dd6d80351916a9d06b97e3
commit: 27f2f62ad490afc8e4dd6d80351916a9d06b97e3
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-08-23T10:32:35-07:00
summary:
bpo-38291: Update 3.10 WhatsNew with typing.{io|re} DeprecationWarning (GH-27872)
(cherry picked from commit 1a995b0ceefdf7eb59963f3ab395c47d8da226e3)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner at users.noreply.github.com>
files:
M Doc/whatsnew/3.10.rst
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index d9a90fb63f18e..d973448e07f80 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -1390,6 +1390,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
--------
@@ -1692,6 +1699,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
More information about the Python-checkins
mailing list