Copy is a no-op on the maskedconstant, as it is a scalar
(self, *args, **kwargs)
| 6828 | del __iop__ # don't leave this around |
| 6829 | |
| 6830 | def copy(self, *args, **kwargs): |
| 6831 | """ Copy is a no-op on the maskedconstant, as it is a scalar """ |
| 6832 | # maskedconstant is a scalar, so copy doesn't need to copy. There's |
| 6833 | # precedent for this with `np.bool` scalars. |
| 6834 | return self |
| 6835 | |
| 6836 | def __copy__(self): |
| 6837 | return self |
no outgoing calls