diff --git a/stdlib/2/os/path.pyi b/stdlib/2/os/path.pyi index b776cbe2a..56106428b 100644 --- a/stdlib/2/os/path.pyi +++ b/stdlib/2/os/path.pyi @@ -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: ... diff --git a/stdlib/3/os/path.pyi b/stdlib/3/os/path.pyi index b776cbe2a..56106428b 100644 --- a/stdlib/3/os/path.pyi +++ b/stdlib/3/os/path.pyi @@ -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: ...