Skip to content

Commit

Permalink
add type to repr of PickledObject
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Dec 8, 2023
1 parent 059dba1 commit 8c13355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loopy/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def __getstate__(self):
return {"objstring": self.objstring}

def __repr__(self) -> str:
return repr(self.unpickle())
return type(self).__name__ + "(" + repr(self.unpickle()) + ")"


class _PickledObjectWithEqAndPersistentHashKeys(_PickledObject):
Expand Down

0 comments on commit 8c13355

Please sign in to comment.