From 2501550a19e0cf50ce815495b03e5c7176b16226 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 6 May 2022 15:20:43 +0100 Subject: [PATCH 1/2] `typing.Text`: tweak deprecation notice https://github.com/python/cpython/pull/92351/files#r866869469 --- Doc/library/typing.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 005a515234110f..e70691679aa050 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1978,7 +1978,8 @@ Other concrete types .. deprecated:: 3.11 Python 2 is no longer supported, and most type checkers also no longer - support type checking Python 2 code. Users should now use + support type checking Python 2 code. Removal of the class is not + currently planned, but users are encouraged to use :class:`str` instead of ``Text`` wherever possible. Abstract Base Classes From 7936237a8b5ce02cdead7b50cd0f9a3c93f2038e Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 6 May 2022 15:35:46 +0100 Subject: [PATCH 2/2] Update Doc/library/typing.rst Co-authored-by: Jelle Zijlstra --- Doc/library/typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index e70691679aa050..7a0229aa879338 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1978,7 +1978,7 @@ Other concrete types .. deprecated:: 3.11 Python 2 is no longer supported, and most type checkers also no longer - support type checking Python 2 code. Removal of the class is not + support type checking Python 2 code. Removal of the alias is not currently planned, but users are encouraged to use :class:`str` instead of ``Text`` wherever possible.