os.path.relpath can use a default argument and still use str (#2159)

This commit is contained in:
Michael J. Sullivan
2018-05-24 13:23:17 -07:00
committed by GitHub
parent 8b84e9cf13
commit db1316d26b
2 changed files with 2 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ else:
def join(path: AnyStr, *paths: AnyStr) -> AnyStr: ...
@overload
def relpath(path: _BytesPath, start: _BytesPath) -> bytes: ... # type: ignore
def relpath(path: _BytesPath, start: Optional[_BytesPath] = ...) -> bytes: ... # type: ignore
@overload
def relpath(path: _StrPath, start: Optional[_StrPath] = ...) -> Text: ...

View File

@@ -141,7 +141,7 @@ else:
def join(path: AnyStr, *paths: AnyStr) -> AnyStr: ...
@overload
def relpath(path: _BytesPath, start: _BytesPath) -> bytes: ... # type: ignore
def relpath(path: _BytesPath, start: Optional[_BytesPath] = ...) -> bytes: ... # type: ignore
@overload
def relpath(path: _StrPath, start: Optional[_StrPath] = ...) -> Text: ...