We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 319d837 commit 114691aCopy full SHA for 114691a
1 file changed
lib/matplotlib/tests/test_units.py
@@ -26,6 +26,9 @@ def to(self, new_units):
26
else:
27
return Quantity(self.magnitude, self.units)
28
29
+ def __copy__(self):
30
+ return Quantity(self.magnitude, self.units)
31
+
32
def __getattr__(self, attr):
33
return getattr(self.magnitude, attr)
34
0 commit comments