mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
* 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
10 lines
227 B
Python
10 lines
227 B
Python
|
|
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: ...
|