8000
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 b20cf20 commit 5c7c915Copy full SHA for 5c7c915
lib/matplotlib/transforms.py
@@ -35,7 +35,6 @@
35
# `np.minimum` instead of the builtin `min`, and likewise for `max`. This is
36
# done so that `nan`s are propagated, instead of being silently dropped.
37
38
-import copy
39
import functools
40
import itertools
41
import textwrap
@@ -139,7 +138,9 @@ def __setstate__(self, data_dict):
139
138
for k, v in self._parents.items() if v is not None}
140
141
def __copy__(self):
142
- other = copy.copy(super())
+ cls = type(self)
+ other = cls.__new__(cls)
143
+ other.__dict__.update(self.__dict__)
144
# If `c = a + b; a1 = copy(a)`, then modifications to `a1` do not
145
# propagate back to `c`, i.e. we need to clear the parents of `a1`.
146
other._parents = {}
0 commit comments