1 import sys 2 from typing import Union 3 4 if sys.version_info < (3, 7): 5 def url2pathname(pathname: str) -> str: ... 6 def pathname2url(pathname: str) -> str: ... 7 def _pncomp2url(component: Union[str, bytes]) -> str: ... 8