Merge pull request #350 from sharmaeklavya2/fix-bytearray

__builtin__: Fix bytearray on python 2
This commit is contained in:
Matthias Kramm
2016-07-08 14:11:45 -07:00
committed by GitHub

View File

@@ -365,7 +365,7 @@ class str(basestring, Sequence[str]):
def __ge__(self, x: unicode) -> bool: ...
def __mod__(self, x: Any) -> str: ...
class bytearray(Sequence[int]):
class bytearray(MutableSequence[int]):
@overload
def __init__(self) -> None: ...
@overload
@@ -431,10 +431,7 @@ class bytearray(Sequence[int]):
@overload
def __setitem__(self, s: slice, x: Union[Sequence[int], str]) -> None: ...
def __setslice__(self, start: int, stop: int, x: Union[Sequence[int], str]) -> None: ...
@overload
def __delitem__(self, i: int) -> None: ...
@overload
def __delitem__(self, s: slice) -> None: ...
def __delitem__(self, i: Union[int, slice]) -> None: ...
def __delslice__(self, start: int, stop: int) -> None: ...
def __add__(self, s: str) -> bytearray: ...
def __mul__(self, n: int) -> bytearray: ...