Skip to content

Commit

Permalink
Allow passing str to Python 2's bytearray.extend. (#3223)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp authored and srittau committed Sep 4, 2019
1 parent efb4af0 commit 3fc8aec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stdlib/2/__builtin__.pyi
Expand Up @@ -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):
Expand Down
2 changes: 2 additions & 0 deletions stdlib/2and3/builtins.pyi
Expand Up @@ -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):
Expand Down

0 comments on commit 3fc8aec

Please sign in to comment.