summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-20 21:27:30 (GMT)
committerGitHub <noreply@github.com>2021-10-20 21:27:30 (GMT)
commit64e83c711eb371d60fce64cae074c4d3311f6ece (patch)
treee93024392d5a1a2376a407d8c5b03604d6e9f8b6 /Python/sysmodule.c
parentb2a989995e6b725c5c957927127832fd3fcecfa2 (diff)
downloadcpython-64e83c711eb371d60fce64cae074c4d3311f6ece.zip
cpython-64e83c711eb371d60fce64cae074c4d3311f6ece.tar.gz
cpython-64e83c711eb371d60fce64cae074c4d3311f6ece.tar.bz2
bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str (GH-28323) (GH-29111)
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 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions