Skip to content

Commit

Permalink
Merge pull request #381 from Genesis-Embodied-AI/zhenjia/fix_list_repr
Browse files Browse the repository at this point in the history
[BUG FIX] proper repr for list
  • Loading branch information
zhenjia-xu authored Dec 29, 2024
2 parents 4fee4a8 + 4a2eecf commit 395563e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions genesis/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ def _repr_brief(self):

return repr_str

def __repr__(self):
return RBC.__repr__(self)

def __colorized__repr__(self):
repr_str = f"{colors.BLUE}{self._repr_type()}(len={colors.MINT}{formats.UNDERLINE}{len(self)}{formats.RESET}{colors.BLUE}, ["

Expand Down

0 comments on commit 395563e

Please sign in to comment.