Skip to content

Commit

Permalink
fix recursion error when printing python object
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Mirz <[email protected]>
  • Loading branch information
m-mirz committed Jan 18, 2025
1 parent 1bed928 commit f705441
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ class {{class_name}}({{subclass_of}}):
str = "class={{class_name}}\n"
attributes = self.__dict__
for key in attributes.keys():
str = str + key + "={}\n".format(attributes[key])
str = str + key + "={}\n".format(repr(attributes[key]))
return str

0 comments on commit f705441

Please sign in to comment.