Add macurl2path stub (#3785)

* Add macurl2path stub, types based on urllib

* Fix types, remove undocumented

The whole module is undocumented, no reason to just mention it on one call

* Module was removed in 3.7, stubtest shouldn't care about it

* Module was removed in 3.7, stubtest shouldn't care about it
This commit is contained in:
Rune Tynan
2020-03-01 01:03:50 -05:00
committed by GitHub
parent b94d23c608
commit 3926e88d13
3 changed files with 11 additions and 0 deletions

9
stdlib/3/macurl2path.pyi Normal file
View File

@@ -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: ...

View File

@@ -76,6 +76,7 @@ macpath.samestat
macpath.split
macpath.splitdrive
macpath.splitext
macurl2path
multiprocessing.shared_memory
os.utime
pyclbr.Class.__init__

View File

@@ -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