Skip to content

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

Merged
merged 10 commits into from
Jul 31, 2023

Conversation

michael-the1
Copy link
Contributor

@michael-the1 michael-the1 commented Jul 23, 2023

Deprecate AnyStr in the docs.


📚 Documentation preview 📚: https://cpython-previews--107116.org.readthedocs.build/

Copy link
Member

@AlexWaygood AlexWaygood left a 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

@AlexWaygood AlexWaygood added type-feature A feature request or enhancement 3.13 bugs and security fixes and removed skip news labels Jul 23, 2023
@bedevere-bot

This comment was marked as outdated.

@michael-the1 michael-the1 requested a review from AlexWaygood July 23, 2023 11:57
Copy link
Member

@AlexWaygood AlexWaygood left a 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

michael-the1 and others added 2 commits July 25, 2023 23:19
@michael-the1 michael-the1 requested a review from AlexWaygood July 25, 2023 21:26
Copy link
Member

@AlexWaygood AlexWaygood left a 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 :-)

@michael-the1 michael-the1 requested a review from AlexWaygood July 30, 2023 16:11
Copy link
Member

@AlexWaygood AlexWaygood left a 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!

@AlexWaygood AlexWaygood enabled auto-merge (squash) July 31, 2023 15:35
@AlexWaygood AlexWaygood merged commit a22ff8e into python:main Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes docs Documentation in the Doc dir topic-typing type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants