[V1][Minor] Add __repr__ to ConstantList (#14907)

Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
Woosuk Kwon
2025-03-16 20:20:15 -07:00
committed by GitHub
parent faa0275730
commit 7f6c5ee06c

View File

@ -86,6 +86,9 @@ class ConstantList(Generic[T], Sequence):
def __len__(self):
return len(self._x)
def __repr__(self):
return f"ConstantList({self._x})"
class BackgroundProcHandle:
"""