mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Allow passing str to Python 2's bytearray.extend. (#3223)
This commit is contained in:
committed by
Sebastian Rittau
parent
efb4af0108
commit
3fc8aec425
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user