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 12, 2024
1 parent 8367398 commit ac81ec7
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 ac81ec7

Please sign in to comment.