Skip to content

Commit f4a2cdd

Browse files
committed
LazyList Representation
1 parent 0dcca0c commit f4a2cdd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/luogu/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ def __iter__(self):
131131
for i in super().__iter__():
132132
yield i()
133133

134+
def __repr__(self) -> str:
135+
return f"LazyList([{', '.join([item.__class__.__name__ for item in self])}])"
136+
134137

135138
class User(Model):
136139
"""用户

0 commit comments

Comments
 (0)