From 55e1dab5081c0d490b2e4419693cbe1b279c43e4 Mon Sep 17 00:00:00 2001 From: Matthias Diener Date: Fri, 8 Dec 2023 09:36:23 -0600 Subject: [PATCH] add type to repr of PickledObject --- loopy/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):