From f297a7ca4334c75b27bbe3e70730fc97fd246950 Mon Sep 17 00:00:00 2001 From: Woosuk Kwon Date: Thu, 7 Nov 2024 16:59:50 -0800 Subject: [PATCH] minor --- vllm/v1/utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vllm/v1/utils.py b/vllm/v1/utils.py index a540dc494a1cf..4b26749712e32 100644 --- a/vllm/v1/utils.py +++ b/vllm/v1/utils.py @@ -1,4 +1,4 @@ -from typing import List, overload, Generic, TypeVar +from typing import Generic, List, TypeVar, overload T = TypeVar("T") @@ -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):