diff options
Diffstat (limited to 'numpy/ma')
-rw-r--r-- | numpy/ma/core.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index a57cdf5c1..a6f252067 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -5718,6 +5718,12 @@ class MaskedConstant(MaskedArray): def flatten(self): return masked_array([self._data], dtype=float, mask=[True]) + def __reduce__(self): + """Override of MaskedArray's __reduce__. + """ + return (self.__class__, ()) + + masked = masked_singleton = MaskedConstant() |