From: Alex Waygood Date: Sun, 8 May 2022 15:22:32 +0000 (+0100) Subject: `typing.Text`: tweak deprecation notice (#92405) X-Git-Tag: v3.12.0a1~1639 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdc99a830f27451754d80ec414d7799b0f4bfed6;p=thirdparty%2FPython%2Fcpython.git `typing.Text`: tweak deprecation notice (#92405) https://github.com/python/cpython/pull/92351/files#r866869469 Co-authored-by: Jelle Zijlstra --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 1d125fb1ebeb..29bcedaddce9 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 alias is not + currently planned, but users are encouraged to use :class:`str` instead of ``Text`` wherever possible. Abstract Base Classes