diff --git a/stdlib/3/macurl2path.pyi b/stdlib/3/macurl2path.pyi new file mode 100644 index 000000000..95ee888fb --- /dev/null +++ b/stdlib/3/macurl2path.pyi @@ -0,0 +1,9 @@ + +import sys + +from typing import Union + +if sys.version_info < (3, 7): + def url2pathname(pathname: str) -> str: ... + def pathname2url(pathname: str) -> str: ... + def _pncomp2url(component: Union[str, bytes]) -> str: ... diff --git a/tests/stubtest_whitelists/py37.txt b/tests/stubtest_whitelists/py37.txt index 7866eb214..45442e4ae 100644 --- a/tests/stubtest_whitelists/py37.txt +++ b/tests/stubtest_whitelists/py37.txt @@ -76,6 +76,7 @@ macpath.samestat macpath.split macpath.splitdrive macpath.splitext +macurl2path multiprocessing.shared_memory os.utime pyclbr.Class.__init__ diff --git a/tests/stubtest_whitelists/py38.txt b/tests/stubtest_whitelists/py38.txt index 9d52da2ad..35cf51338 100644 --- a/tests/stubtest_whitelists/py38.txt +++ b/tests/stubtest_whitelists/py38.txt @@ -119,6 +119,7 @@ logging.handlers.MemoryHandler.__init__ lzma.LZMACompressor.compress lzma.is_check_supported macpath +macurl2path mmap.MADV_AUTOSYNC mmap.MADV_CORE mmap.MADV_NOCORE