mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
py39: add PEP 616 methods (#4090)
This commit is contained in:
@@ -169,6 +169,9 @@ class UserString(Sequence[str]):
|
||||
@overload
|
||||
def maketrans(x: str, y: str, z: str = ...) -> Dict[int, Union[int, None]]: ...
|
||||
def partition(self, sep: str) -> Tuple[str, str, str]: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def removeprefix(self: _UserStringT, __prefix: Union[str, UserString]) -> _UserStringT: ...
|
||||
def removesuffix(self: _UserStringT, __suffix: Union[str, UserString]) -> _UserStringT: ...
|
||||
def replace(self: _UserStringT, old: Union[str, UserString], new: Union[str, UserString], maxsplit: int = ...) -> _UserStringT: ...
|
||||
def rfind(self, sub: Union[str, UserString], start: int = ..., end: int = ...) -> int: ...
|
||||
def rindex(self, sub: Union[str, UserString], start: int = ..., end: int = ...) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user