diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-10-20 21:25:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-20 21:25:10 (GMT) |
commit | d33fae7105aaea7c376b5455fd1f8de802ca2542 (patch) | |
tree | e30370a7331a0ea70977ab1b37288fd60d5c35d8 /Doc | |
parent | 427ab124b3e9a54602b6f1d073a8e073159c0b51 (diff) | |
download | cpython-d33fae7105aaea7c376b5455fd1f8de802ca2542.zip cpython-d33fae7105aaea7c376b5455fd1f8de802ca2542.tar.gz cpython-d33fae7105aaea7c376b5455fd1f8de802ca2542.tar.bz2 |
bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str (GH-28323) (GH-29112)
An object implementing the os.PathLike protocol can represent a file
system path as a str or bytes object.
Therefore, _infer_return_type function should infer os.PathLike[str]
object as str type and os.PathLike[bytes] object as bytes type.
(cherry picked from commit 6270d3eeaf17b50abc4f8f4d97790d66179638e4)
Co-authored-by: Kyungmin Lee <rekyungmin@gmail.com>
Diffstat (limited to 'Doc')
0 files changed, 0 insertions, 0 deletions