-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-92332: Docs-only deprecation of typing.Text
#92351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
ec5bb2c
5d5a855
72b6f2a
e1ffa80
0edfa9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
typing.Text
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1976,6 +1976,11 @@ Other concrete types | |
|
|
||
| .. versionadded:: 3.5.2 | ||
|
|
||
| .. deprecated:: 3.11 | ||
| Python 2 is no longer supported at runtime, and is also no longer | ||
| supported by most type checkers. Users should therefore now use | ||
| :class:`str` instead of ``Text`` wherever possible. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we add an explicit note here saying that removal is not currently planned? A "deprecated" note can make users think it will be removed soon.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (For future readers of this PR): |
||
|
|
||
| Abstract Base Classes | ||
| --------------------- | ||
|
|
||
|
|
@@ -2687,3 +2692,5 @@ convenience. This is subject to change, and not all deprecations are listed. | |
| | ``typing`` versions of standard | 3.9 | Undecided | :pep:`585` | | ||
| | collections | | | | | ||
| +----------------------------------+---------------+-------------------+----------------+ | ||
| | ``typing.Text`` | 3.11 | Undecided | :gh:`92332` | | ||
| +----------------------------------+---------------+-------------------+----------------+ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Deprecate :class:`typing.Text` (removal of the class is currently not | ||
| planned). Patch by Alex Waygood. |
Uh oh!
There was an error while loading. Please reload this page.