mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
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:
9
stdlib/3/macurl2path.pyi
Normal file
9
stdlib/3/macurl2path.pyi
Normal 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: ...
|
||||
@@ -76,6 +76,7 @@ macpath.samestat
|
||||
macpath.split
|
||||
macpath.splitdrive
|
||||
macpath.splitext
|
||||
macurl2path
|
||||
multiprocessing.shared_memory
|
||||
os.utime
|
||||
pyclbr.Class.__init__
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user