Skip to content

[3.12] gh-105578: Add more usage examples to typing.AnyStr docs (GH-107045) #107503

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 1 commit into from
Jul 31, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 31, 2023

typing.AnyStr has different semantics to str | bytes, which often leads to user confusion
(cherry picked from commit f877b32)

Co-authored-by: Michael The [email protected]


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

…honGH-107045)

``typing.AnyStr`` has different semantics to ``str | bytes``, which often leads to user confusion
(cherry picked from commit f877b32)

Co-authored-by: Michael The <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants