Skip to content

Commit

Permalink
types: allow slice in Queue.__delitem__
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhnsy committed Jun 14, 2022
1 parent afe52da commit f900144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slate/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __getitem__(self, index: SupportsIndex | slice) -> QueueItemT | list[QueueIt
def __setitem__(self, index: SupportsIndex, value: QueueItemT) -> None:
self._items.__setitem__(index, value)

def __delitem__(self, index: SupportsIndex) -> None:
def __delitem__(self, index: SupportsIndex | slice) -> None:
self._items.__delitem__(index)

def __iter__(self) -> Iterator[QueueItemT]:
Expand Down

0 comments on commit f900144

Please sign in to comment.