◐ Shell
clean mode source ↗

gh-105578: Add more usage examples to `typing.AnyStr` docs by michael-the1 · Pull Request #107045 · python/cpython

@michael-the1

AlexWaygood

JelleZijlstra

@michael-the1

AlexWaygood

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

@AlexWaygood

AlexWaygood

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

AlexWaygood

@AlexWaygood AlexWaygood changed the title gh-105578: Add more usage examples to typing.AnyStr gh-105578: Add more usage examples to typing.AnyStr docs

Jul 31, 2023

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jul 31, 2023
…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>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jul 31, 2023
…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>

AlexWaygood pushed a commit that referenced this pull request

Jul 31, 2023
…-107045) (#107503)

gh-105578: Add more usage examples to `typing.AnyStr` docs (GH-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>

AlexWaygood pushed a commit that referenced this pull request

Jul 31, 2023
…-107045) (#107504)

gh-105578: Add more usage examples to `typing.AnyStr` docs (GH-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>