mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -14,7 +14,7 @@ from genericpath import (
|
||||
samestat as samestat,
|
||||
)
|
||||
from os import PathLike
|
||||
from typing import AnyStr, Sequence, Tuple, overload
|
||||
from typing import AnyStr, Sequence, overload
|
||||
|
||||
supports_unicode_filenames: bool
|
||||
# aliases (also in os)
|
||||
@@ -82,17 +82,17 @@ def relpath(path: BytesPath, start: BytesPath | None = ...) -> bytes: ...
|
||||
@overload
|
||||
def relpath(path: StrPath, start: StrPath | None = ...) -> str: ...
|
||||
@overload
|
||||
def split(p: PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...
|
||||
def split(p: PathLike[AnyStr]) -> tuple[AnyStr, AnyStr]: ...
|
||||
@overload
|
||||
def split(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
||||
def split(p: AnyStr) -> tuple[AnyStr, AnyStr]: ...
|
||||
@overload
|
||||
def splitdrive(p: PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...
|
||||
def splitdrive(p: PathLike[AnyStr]) -> tuple[AnyStr, AnyStr]: ...
|
||||
@overload
|
||||
def splitdrive(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
||||
def splitdrive(p: AnyStr) -> tuple[AnyStr, AnyStr]: ...
|
||||
@overload
|
||||
def splitext(p: PathLike[AnyStr]) -> Tuple[AnyStr, AnyStr]: ...
|
||||
def splitext(p: PathLike[AnyStr]) -> tuple[AnyStr, AnyStr]: ...
|
||||
@overload
|
||||
def splitext(p: AnyStr) -> Tuple[AnyStr, AnyStr]: ...
|
||||
def splitext(p: AnyStr) -> tuple[AnyStr, AnyStr]: ...
|
||||
def isabs(s: StrOrBytesPath) -> bool: ...
|
||||
def islink(path: StrOrBytesPath) -> bool: ...
|
||||
def ismount(path: StrOrBytesPath) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user