mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 09:55:59 +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
@@ -119,7 +119,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: ...
|
||||
@abstractmethod
|
||||
def __delitem__(self, i: Union[int, slice]) -> None: ...
|
||||
# Mixin methods
|
||||
|
||||
Reference in New Issue
Block a user