1 from typing import AnyStr 2 3 def url2pathname(url: AnyStr) -> AnyStr: ... 4 def pathname2url(p: AnyStr) -> AnyStr: ... 5