mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-17 03:21:25 +08:00
Support PathLike argument to os.path.split (#1588)
This commit is contained in:
1 parent
fd8be43044
commit
a4285af4c2
1 file changed
+4
-1
@@ -92,7 +92,10 @@ def sameopenfile(fp1: int, fp2: int) -> bool: ...
|
||||
# def samestat(stat1: stat_result,
|
||||
# stat2: stat_result) -> bool: ... # Unix only
|
||||
|
||||
def split(path: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
||||
if sys.version_info >= (3, 6):
|
||||
def split(path: Union[AnyStr, _PathLike[AnyStr]]) -> Tuple[AnyStr, AnyStr]: ...
|
||||
else:
|
||||
def split(path: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
||||
def splitdrive(path: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
||||
def splitext(path: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user