mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 18:05:57 +08:00
Fix (start/end)swith arguments (#4949)
This commit is contained in:
@@ -296,7 +296,9 @@ class unicode(basestring, Sequence[unicode]):
|
||||
def count(self, x: unicode) -> int: ...
|
||||
def decode(self, encoding: unicode = ..., errors: unicode = ...) -> unicode: ...
|
||||
def encode(self, encoding: unicode = ..., errors: unicode = ...) -> str: ...
|
||||
def endswith(self, suffix: Union[unicode, Tuple[unicode, ...]], start: int = ..., end: int = ...) -> bool: ...
|
||||
def endswith(
|
||||
self, __suffix: Union[unicode, Tuple[unicode, ...]], __start: Optional[int] = ..., __end: Optional[int] = ...
|
||||
) -> bool: ...
|
||||
def expandtabs(self, tabsize: int = ...) -> unicode: ...
|
||||
def find(self, sub: unicode, start: int = ..., end: int = ...) -> int: ...
|
||||
def format(self, *args: object, **kwargs: object) -> unicode: ...
|
||||
@@ -326,7 +328,9 @@ class unicode(basestring, Sequence[unicode]):
|
||||
def rstrip(self, chars: unicode = ...) -> unicode: ...
|
||||
def split(self, sep: Optional[unicode] = ..., maxsplit: int = ...) -> List[unicode]: ...
|
||||
def splitlines(self, keepends: bool = ...) -> List[unicode]: ...
|
||||
def startswith(self, prefix: Union[unicode, Tuple[unicode, ...]], start: int = ..., end: int = ...) -> bool: ...
|
||||
def startswith(
|
||||
self, __prefix: Union[unicode, Tuple[unicode, ...]], __start: Optional[int] = ..., __end: Optional[int] = ...
|
||||
) -> bool: ...
|
||||
def strip(self, chars: unicode = ...) -> unicode: ...
|
||||
def swapcase(self) -> unicode: ...
|
||||
def title(self) -> unicode: ...
|
||||
@@ -369,7 +373,9 @@ class str(Sequence[str], basestring):
|
||||
def count(self, x: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
||||
def decode(self, encoding: Text = ..., errors: Text = ...) -> unicode: ...
|
||||
def encode(self, encoding: Text = ..., errors: Text = ...) -> bytes: ...
|
||||
def endswith(self, suffix: Union[Text, Tuple[Text, ...]]) -> bool: ...
|
||||
def endswith(
|
||||
self, __suffix: Union[Text, Tuple[Text, ...]], __start: Optional[int] = ..., __end: Optional[int] = ...
|
||||
) -> bool: ...
|
||||
def expandtabs(self, tabsize: int = ...) -> str: ...
|
||||
def find(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
|
||||
def format(self, *args: object, **kwargs: object) -> str: ...
|
||||
@@ -418,7 +424,9 @@ class str(Sequence[str], basestring):
|
||||
@overload
|
||||
def split(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ...
|
||||
def splitlines(self, keepends: bool = ...) -> List[str]: ...
|
||||
def startswith(self, prefix: Union[Text, Tuple[Text, ...]]) -> bool: ...
|
||||
def startswith(
|
||||
self, __prefix: Union[Text, Tuple[Text, ...]], __start: Optional[int] = ..., __end: Optional[int] = ...
|
||||
) -> bool: ...
|
||||
@overload
|
||||
def strip(self, __chars: str = ...) -> str: ...
|
||||
@overload
|
||||
@@ -468,7 +476,9 @@ class bytearray(MutableSequence[int], ByteString):
|
||||
def center(self, __width: int, __fillchar: bytes = ...) -> bytearray: ...
|
||||
def count(self, __sub: str) -> int: ...
|
||||
def decode(self, encoding: Text = ..., errors: Text = ...) -> str: ...
|
||||
def endswith(self, __suffix: Union[bytes, Tuple[bytes, ...]]) -> bool: ...
|
||||
def endswith(
|
||||
self, __suffix: Union[bytes, Tuple[bytes, ...]], __start: Optional[int] = ..., __end: Optional[int] = ...
|
||||
) -> bool: ...
|
||||
def expandtabs(self, tabsize: int = ...) -> bytearray: ...
|
||||
def extend(self, iterable: Union[str, Iterable[int]]) -> None: ...
|
||||
def find(self, __sub: str, __start: int = ..., __end: int = ...) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user