diff --git a/loopy/tools.py b/loopy/tools.py index 76d7ee2cd..bb4904bf2 100644 --- a/loopy/tools.py +++ b/loopy/tools.py @@ -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):