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 Feb 9, 2024
1 parent e549ef1 commit 55e1dab
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 @@ -407,7 +407,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 55e1dab

Please sign in to comment.