diff --git a/stdlib/2/urllib.pyi b/stdlib/2/urllib.pyi index 12836231c..3373da357 100644 --- a/stdlib/2/urllib.pyi +++ b/stdlib/2/urllib.pyi @@ -1,7 +1,7 @@ from typing import Any, AnyStr, IO, List, Mapping, Sequence, Text, Tuple, TypeVar, Union -def url2pathname(pathname: str) -> str: ... -def pathname2url(pathname: str) -> str: ... +def url2pathname(pathname: AnyStr) -> AnyStr: ... +def pathname2url(pathname: AnyStr) -> AnyStr: ... def urlopen(url: str, data=..., proxies: Mapping[str, str] = ..., context=...) -> IO[Any]: ... def urlretrieve(url, filename=..., reporthook=..., data=..., context=...): ... def urlcleanup() -> None: ...