mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Merge pull request #350 from sharmaeklavya2/fix-bytearray
__builtin__: Fix bytearray on python 2
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user