X Tutup
The Wayback Machine - https://web.archive.org/web/20220803065529/https://github.com/python/cpython/pull/92351
Skip to content
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

gh-92332: Docs-only deprecation of typing.Text #92351

Merged
merged 5 commits into from May 6, 2022

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented May 5, 2022

Closes #92332

Doc/library/typing.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@Fidget-Spinner Fidget-Spinner left a comment

Thanks Alex.

@Fidget-Spinner
Copy link
Contributor

@Fidget-Spinner Fidget-Spinner commented May 6, 2022

I'm going to merge this first in case we inadvertently miss the beta freeze cutoff. We can just fix up anything else in the docs if Jelle spots problems later.

@Fidget-Spinner Fidget-Spinner merged commit 6f18b86 into python:main May 6, 2022
13 checks passed
@AlexWaygood AlexWaygood deleted the typing-dot-text branch May 6, 2022
@AlexWaygood
Copy link
Member Author

@AlexWaygood AlexWaygood commented May 6, 2022

I'm going to merge this first in case we inadvertently miss the beta freeze cutoff. We can just fix up anything else in the docs if Jelle spots problems later.

Thanks @Fidget-Spinner 😊

.. 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
:class:`str` instead of ``Text`` wherever possible.
Copy link
Member

@JelleZijlstra JelleZijlstra May 6, 2022

Choose a reason for hiding this comment

The 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.

Copy link
Member Author

@AlexWaygood AlexWaygood May 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(For future readers of this PR):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs expert-typing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
X Tutup