mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
__builtin__: Fix bytearray on python 2
bytearray should inherit from MutableSequence[int] instead of Sequence[int].
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
|
||||
|
||||
Reference in New Issue
Block a user