Skip to content

Commit 7f6c5ee

Browse files
authored
[V1][Minor] Add __repr__ to ConstantList (#14907)
Signed-off-by: Woosuk Kwon <[email protected]>
1 parent faa0275 commit 7f6c5ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vllm/v1/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def __contains__(self, item):
8686
def __len__(self):
8787
return len(self._x)
8888

89+
def __repr__(self):
90+
return f"ConstantList({self._x})"
91+
8992

9093
class BackgroundProcHandle:
9194
"""

0 commit comments

Comments
 (0)