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