diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2022-05-06 10:15:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 10:15:18 (GMT) |
commit | 6f18b86fda516df9ba7614423ba5c8d0fcf366ba (patch) | |
tree | 8fc0c398309b244439f65a22b22830b5df35e2a6 /Doc/whatsnew/3.11.rst | |
parent | cbc2c199a071d4d94b92c835324bf2ab721bb507 (diff) | |
download | cpython-6f18b86fda516df9ba7614423ba5c8d0fcf366ba.zip cpython-6f18b86fda516df9ba7614423ba5c8d0fcf366ba.tar.gz cpython-6f18b86fda516df9ba7614423ba5c8d0fcf366ba.tar.bz2 |
gh-92332: Docs-only deprecation of `typing.Text` (GH-92351)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Doc/whatsnew/3.11.rst')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 19ac867..f679100 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -1202,6 +1202,12 @@ Deprecated For now, a deprecation warning is raised for such syntax. (Contributed by Serhiy Storchaka in :gh:`91760`.) +* :class:`typing.Text`, which exists solely to provide compatibility support + between Python 2 and Python 3 code, is now deprecated. Its removal is + currently unplanned, but users are encouraged to use :class:`str` instead + wherever possible. + (Contributed by Alex Waygood in :gh:`92332`.) + Removed ======= |