[V1][Minor] Add __repr__ to ConstantList (#14907)
Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
@@ -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:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user