[3.11] gh-105578: Add more usage examples to typing.AnyStr docs (GH-107045)#107504
Merged
Merged
Conversation
…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>
This was referenced Jul 31, 2023
typing.AnyStrhas different semantics tostr | bytes, which often leads to user confusion(cherry picked from commit f877b32)
Co-authored-by: Michael The michael-the1@users.noreply.github.com
typing.AnyStr#105578📚 Documentation preview 📚: https://cpython-previews--107504.org.readthedocs.build/