-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-105578: Deprecate AnyStr
in the docs
#107116
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-105578: Deprecate AnyStr
in the docs
#107116
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
This also needs:
- A news entry
- An entry in "What's New in Python 3.13
The deprecation notice also needs to state:
- That we intend to remove it from
__all__
and start emitting deprecation warnings at runtime in Python 3.16 - That we plan to remove it in Python 3.18
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nearly there! Could you also add a row to the big deprecations table at the bottom of the typing docs: https://docs.python.org/3.13/library/typing.html#deprecation-timeline-of-major-features
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few suggestions to add some links to https://docs.python.org/3.13/reference/compound_stmts.html#type-params
Some of these are a bit repetitive, but it's important that people see notices about upcoming removals, so it's actually a good thing if we're saying the same thing in lots of places :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, looks great!
Deprecate
AnyStr
in the docs.typing.AnyStr
#105578📚 Documentation preview 📚: https://cpython-previews--107116.org.readthedocs.build/