mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 10:51:15 +08:00
Rearrange overloads to account for optional arguments (#2150)
Basically, the same thing as [my previous pull request][0], except the fixes are now focusing on functions with overlapping argument counts. [0]: https://github.com/python/typeshed/pull/2138
This commit is contained in:
committed by
Jelle Zijlstra
parent
6a080cd0db
commit
709b193416
@@ -140,9 +140,9 @@ else:
|
||||
def join(path: AnyStr, *paths: AnyStr) -> AnyStr: ...
|
||||
|
||||
@overload
|
||||
def relpath(path: _StrPath, start: Optional[_StrPath] = ...) -> Text: ... # type: ignore
|
||||
def relpath(path: _BytesPath, start: _BytesPath) -> bytes: ... # type: ignore
|
||||
@overload
|
||||
def relpath(path: _BytesPath, start: _BytesPath) -> bytes: ...
|
||||
def relpath(path: _StrPath, start: Optional[_StrPath] = ...) -> Text: ...
|
||||
|
||||
def samefile(path1: _PathType, path2: _PathType) -> bool: ...
|
||||
def sameopenfile(fp1: int, fp2: int) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user