Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosukKwon committed Nov 8, 2024
1 parent 6845236 commit f297a7c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vllm/v1/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, overload, Generic, TypeVar
from typing import Generic, List, TypeVar, overload

T = TypeVar("T")

Expand Down Expand Up @@ -42,10 +42,13 @@ def __getitem__(self, item):

@overload
def __setitem__(self, item, value):
raise Exception("Cannot set item in a constant list")
...

@overload
def __setitem__(self, s: slice, value, /):
...

def __setitem__(self, item, value):
raise Exception("Cannot set item in a constant list")

def __delitem__(self, item):
Expand Down

0 comments on commit f297a7c

Please sign in to comment.