mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix __setitem__(slice, ...) of various mutable sequences (#496)
Adds support of assigning iterables to slice of mutable sequences and bytes to bytearray's slice.
This commit is contained in:
committed by
Matthias Kramm
parent
c10198db11
commit
34175b888d
@@ -163,7 +163,7 @@ class MutableSequence(Sequence[_T], Generic[_T]):
|
||||
def __setitem__(self, i: int, o: _T) -> None: ...
|
||||
@overload
|
||||
@abstractmethod
|
||||
def __setitem__(self, s: slice, o: Sequence[_T]) -> None: ...
|
||||
def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ...
|
||||
@overload
|
||||
@abstractmethod
|
||||
def __delitem__(self, i: int) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user