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 authored and inducer committed Nov 14, 2024
1 parent f26cfd4 commit 9ff0285
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 @@ -349,7 +349,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 9ff0285

Please sign in to comment.