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

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