mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-92332: Docs-only deprecation of typing.Text
(GH-92351)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
This commit is contained in:
parent
cbc2c199a0
commit
6f18b86fda
3 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
=======
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue