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 Oct 8, 2024
1 parent 572eb99 commit 9be8be2
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 @@ -409,7 +409,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 9be8be2

Please sign in to comment.