mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
slices of MutableSequences are also MutableSequences (#2428)
This commit is contained in:
committed by
Jelle Zijlstra
parent
ea2122741f
commit
2e0af18dda
@@ -163,6 +163,12 @@ class MutableSequence(Sequence[_T], Generic[_T]):
|
||||
def insert(self, index: int, object: _T) -> None: ...
|
||||
@overload
|
||||
@abstractmethod
|
||||
def __getitem__(self, i: int) -> _T: ...
|
||||
@overload
|
||||
@abstractmethod
|
||||
def __getitem__(self, s: slice) -> MutableSequence[_T]: ...
|
||||
@overload
|
||||
@abstractmethod
|
||||
def __setitem__(self, i: int, o: _T) -> None: ...
|
||||
@overload
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user