mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-10 02:20:13 +08:00
[V1][Minor] Add __repr__ to ConstantList (#14907)
Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
parent
faa0275730
commit
7f6c5ee06c
@ -86,6 +86,9 @@ class ConstantList(Generic[T], Sequence):
|
|||||||
def __len__(self):
|
def __len__(self):
|
||||||
return len(self._x)
|
return len(self._x)
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return f"ConstantList({self._x})"
|
||||||
|
|
||||||
|
|
||||||
class BackgroundProcHandle:
|
class BackgroundProcHandle:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user