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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-105578: Deprecate AnyStr in the docs #107116

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.

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

Doc/library/typing.rst Outdated Show resolved Hide resolved
Doc/library/typing.rst Outdated Show resolved Hide resolved
Doc/whatsnew/3.13.rst Outdated Show resolved Hide resolved
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 :-)

Doc/library/typing.rst Outdated Show resolved Hide resolved
Doc/whatsnew/3.13.rst Show resolved Hide resolved
Doc/whatsnew/3.13.rst Outdated Show resolved Hide resolved
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
22 checks passed
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.

None yet

3 participants