Skip to content

Commit e9a2087

Browse files
committed
Fix List not calling __repr__
1 parent 56f1a8c commit e9a2087

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyrogram/api/core/list.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ class List(list, Object):
2323
__slots__ = []
2424

2525
def __repr__(self):
26-
return "pyrogram.api.core.List([{}])".format(",".join(Object.__str__(i) for i in self))
26+
return "pyrogram.api.core.List([{}])".format(
27+
",".join(Object.__repr__(i) for i in self)
28+
)

0 commit comments

Comments
 (0)