mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 01:45:59 +08:00
Fix (start/end)swith arguments (#4949)
This commit is contained in:
@@ -27,7 +27,7 @@ class UserString(Sequence[UserString]):
|
||||
def count(self, sub: int, start: int = ..., end: int = ...) -> int: ...
|
||||
def decode(self: _UST, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> _UST: ...
|
||||
def encode(self: _UST, encoding: Optional[str] = ..., errors: Optional[str] = ...) -> _UST: ...
|
||||
def endswith(self, suffix: Text, start: int = ..., end: int = ...) -> bool: ...
|
||||
def endswith(self, suffix: Union[Text, Tuple[Text, ...]], start: Optional[int] = ..., end: Optional[int] = ...) -> bool: ...
|
||||
def expandtabs(self: _UST, tabsize: int = ...) -> _UST: ...
|
||||
def find(self, sub: Text, start: int = ..., end: int = ...) -> int: ...
|
||||
def index(self, sub: Text, start: int = ..., end: int = ...) -> int: ...
|
||||
@@ -54,7 +54,7 @@ class UserString(Sequence[UserString]):
|
||||
def split(self, sep: Optional[Text] = ..., maxsplit: int = ...) -> List[Text]: ...
|
||||
def rsplit(self, sep: Optional[Text] = ..., maxsplit: int = ...) -> List[Text]: ...
|
||||
def splitlines(self, keepends: int = ...) -> List[Text]: ...
|
||||
def startswith(self, suffix: Text, start: int = ..., end: int = ...) -> bool: ...
|
||||
def startswith(self, prefix: Union[Text, Tuple[Text, ...]], start: Optional[int] = ..., end: Optional[int] = ...) -> bool: ...
|
||||
def strip(self: _UST, chars: Optional[Text] = ...) -> _UST: ...
|
||||
def swapcase(self: _UST) -> _UST: ...
|
||||
def title(self: _UST) -> _UST: ...
|
||||
|
||||
Reference in New Issue
Block a user