https://github.com/python/cpython
Revision 6270d3eeaf17b50abc4f8f4d97790d66179638e4 authored by Kyungmin Lee on 20 October 2021, 19:54:41 UTC, committed by GitHub on 20 October 2021, 19:54:41 UTC
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.
1 parent bc85eb7
History
Tip revision: 6270d3eeaf17b50abc4f8f4d97790d66179638e4 authored by Kyungmin Lee on 20 October 2021, 19:54:41 UTC
bpo-45192: Fix a bug that infers the type of an os.PathLike[bytes] object as str (GH-28323)
Tip revision: 6270d3e
File Mode Size
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
.editorconfig -rw-r--r-- 181 bytes
.gitattributes -rw-r--r-- 2.1 KB
.gitignore -rw-r--r-- 2.1 KB
.travis.yml -rw-r--r-- 6.5 KB
CODE_OF_CONDUCT.md -rw-r--r-- 630 bytes
LICENSE -rw-r--r-- 13.6 KB
Makefile.pre.in -rw-r--r-- 76.0 KB
README.rst -rw-r--r-- 9.9 KB
aclocal.m4 -rw-r--r-- 22.3 KB
config.guess -rwxr-xr-x 48.3 KB
config.sub -rwxr-xr-x 33.6 KB
configure -rwxr-xr-x 514.9 KB
configure.ac -rw-r--r-- 175.7 KB
install-sh -rwxr-xr-x 15.0 KB
netlify.toml -rw-r--r-- 82 bytes
pyconfig.h.in -rw-r--r-- 45.0 KB
setup.py -rw-r--r-- 114.7 KB

README.rst

back to top