We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6416366 commit f12640dCopy full SHA for f12640d
matplotview/_view_axes.py
@@ -267,9 +267,13 @@ def set_linescaling(self, value: bool):
267
def __reduce__(self):
268
builder, args = super().__reduce__()[:2]
269
270
- if(type(self) in args):
271
- builder = super().__new__
272
- args = (type(self).__bases__[0],)
+ if(self.__new__ == builder):
+ builder = super().__new__()
+
273
+ cls = type(self)
274
+ args = tuple(
275
+ arg if(arg != cls) else cls.__bases__[0] for arg in args
276
+ )
277
278
return (
279
_view_from_pickle,
0 commit comments