diff --git a/stdlib/2.7/__builtin__.pyi b/stdlib/2.7/__builtin__.pyi index 120007b73..e110a1a35 100644 --- a/stdlib/2.7/__builtin__.pyi +++ b/stdlib/2.7/__builtin__.pyi @@ -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: ...