Allow passing str to Python 2's bytearray.extend. (#3223)

This commit is contained in:
Benjamin Peterson
2019-09-04 14:24:58 -07:00
committed by Sebastian Rittau
parent efb4af0108
commit 3fc8aec425
2 changed files with 4 additions and 0 deletions

View File

@@ -667,6 +667,8 @@ class bytearray(MutableSequence[int], ByteString):
def decode(self, encoding: Text = ..., errors: Text = ...) -> str: ...
def endswith(self, suffix: Union[bytes, Tuple[bytes, ...]]) -> bool: ...
def expandtabs(self, tabsize: int = ...) -> bytearray: ...
if sys.version_info < (3,):
def extend(self, iterable: Union[str, Iterable[int]]) -> None: ...
if sys.version_info >= (3,):
def find(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...
if sys.version_info >= (3, 5):