diff --git a/loopy/tools.py b/loopy/tools.py index 833ba3620..1fe4d9615 100644 --- a/loopy/tools.py +++ b/loopy/tools.py @@ -412,7 +412,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):