bytes/bytearray.startswith fixes (#2696)

This commit is contained in:
Ville Skyttä
2018-12-17 19:57:07 +02:00
committed by Sebastian Rittau
parent 4d85e5365f
commit 0956a24eb2

View File

@@ -387,7 +387,8 @@ class bytes(ByteString):
def rstrip(self, chars: Optional[bytes] = ...) -> bytes: ...
def split(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytes]: ...
def splitlines(self, keepends: bool = ...) -> List[bytes]: ...
def startswith(self, prefix: Union[bytes, Tuple[bytes, ...]]) -> bool: ...
def startswith(self, prefix: Union[bytes, Tuple[bytes, ...]], start: Optional[int] = ...,
end: Optional[int] = ...) -> bool: ...
def strip(self, chars: Optional[bytes] = ...) -> bytes: ...
def swapcase(self) -> bytes: ...
def title(self) -> bytes: ...
@@ -466,7 +467,8 @@ class bytearray(MutableSequence[int], ByteString):
def rstrip(self, chars: Optional[bytes] = ...) -> bytearray: ...
def split(self, sep: Optional[bytes] = ..., maxsplit: int = ...) -> List[bytearray]: ...
def splitlines(self, keepends: bool = ...) -> List[bytearray]: ...
def startswith(self, prefix: bytes) -> bool: ...
def startswith(self, prefix: Union[bytes, Tuple[bytes, ...]], start: Optional[int] = ...,
end: Optional[int] = ...) -> bool: ...
def strip(self, chars: Optional[bytes] = ...) -> bytearray: ...
def swapcase(self) -> bytearray: ...
def title(self) -> bytearray: ...