]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-105578: Add more usage examples to `typing.AnyStr` docs (GH-107045) (#107503)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 31 Jul 2023 15:33:00 +0000 (08:33 -0700)
committerGitHub <noreply@github.com>
Mon, 31 Jul 2023 15:33:00 +0000 (15:33 +0000)
commit9f58d9ec9061f1e6ec37432b6031b7c9a580fb6c
tree66769dd186816bc3fc0e1bd9f4340d957d00c9e4
parent831fd19d30a4051d96117f42b625642ee8a250fb
[3.12] gh-105578: Add more usage examples to `typing.AnyStr` docs (GH-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 f877b32b879f2076bb1c52826af0c28ebf1aaeed)

Co-authored-by: Michael The <michael-the1@users.noreply.github.com>
Doc/library/typing.rst