◐ Shell
clean mode source ↗

[3.12] gh-105578: Add more usage examples to `typing.AnyStr` docs (GH-107045) by miss-islington · Pull Request #107503 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@miss-islington

@miss-islington miss-islington commented

Jul 31, 2023

edited by github-actions Bot

Loading

Copy link Copy Markdown

Contributor

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

Co-authored-by: Michael The michael-the1@users.noreply.github.com


📚 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 <michael-the1@users.noreply.github.com>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gvanrossum gvanrossum Awaiting requested review from gvanrossum gvanrossum is a code owner

@Fidget-Spinner Fidget-Spinner Awaiting requested review from Fidget-Spinner

@JelleZijlstra JelleZijlstra Awaiting requested review from JelleZijlstra JelleZijlstra is a code owner

@AlexWaygood AlexWaygood Awaiting requested review from AlexWaygood AlexWaygood is a code owner

Labels

docs

Documentation in the Doc dir

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@miss-islington @bedevere-bot @AlexWaygood @michael-the1