@@ -387,7 +387,8 @@ class bytes(ByteString):
387
387
def rstrip (self , chars : Optional [bytes ] = ...) -> bytes : ...
388
388
def split (self , sep : Optional [bytes ] = ..., maxsplit : int = ...) -> List [bytes ]: ...
389
389
def splitlines (self , keepends : bool = ...) -> List [bytes ]: ...
390
- def startswith (self , prefix : Union [bytes , Tuple [bytes , ...]]) -> bool : ...
390
+ def startswith (self , prefix : Union [bytes , Tuple [bytes , ...]], start : Optional [int ] = ...,
391
+ end : Optional [int ] = ...) -> bool : ...
391
392
def strip (self , chars : Optional [bytes ] = ...) -> bytes : ...
392
393
def swapcase (self ) -> bytes : ...
393
394
def title (self ) -> bytes : ...
@@ -466,7 +467,8 @@ class bytearray(MutableSequence[int], ByteString):
466
467
def rstrip (self , chars : Optional [bytes ] = ...) -> bytearray : ...
467
468
def split (self , sep : Optional [bytes ] = ..., maxsplit : int = ...) -> List [bytearray ]: ...
468
469
def splitlines (self , keepends : bool = ...) -> List [bytearray ]: ...
469
- def startswith (self , prefix : bytes ) -> bool : ...
470
+ def startswith (self , prefix : Union [bytes , Tuple [bytes , ...]], start : Optional [int ] = ...,
471
+ end : Optional [int ] = ...) -> bool : ...
470
472
def strip (self , chars : Optional [bytes ] = ...) -> bytearray : ...
471
473
def swapcase (self ) -> bytearray : ...
472
474
def title (self ) -> bytearray : ...
0 commit comments