gh-105578: Deprecate AnyStr in the docs#107116
Conversation
AlexWaygood
left a comment
There was a problem hiding this comment.
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.
AlexWaygood
left a comment
There was a problem hiding this comment.
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.
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 :-)
Deprecate
AnyStrin the docs.typing.AnyStr#105578📚 Documentation preview 📚: https://cpython-previews--107116.org.readthedocs.build/