File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,14 @@ def mask_missing(arr: ArrayLike, value) -> npt.NDArray[np.bool_]:
102
102
if arr .dtype .kind == "f" :
103
103
# GH#55127
104
104
if isinstance (arr .dtype , BaseMaskedDtype ):
105
- mask = np .isnan (arr ._data ) & ~ arr .isna ()
105
+ # error: "ExtensionArray" has no attribute "_data" [attr-defined]
106
+ mask = np .isnan (arr ._data ) & ~ arr .isna () # type: ignore[attr-defined,operator]
106
107
return mask
107
108
else :
109
+ # error: "ExtensionArray" has no attribute "_pa_array" [attr-defined]
108
110
import pyarrow .compute as pc
109
111
110
- mask = pc .is_nan (arr ._pa_array ).fill_null (False ).to_numpy ()
112
+ mask = pc .is_nan (arr ._pa_array ).fill_null (False ).to_numpy () # type: ignore[attr-defined]
111
113
return mask
112
114
113
115
elif arr .dtype .kind in "iu" :
You can’t perform that action at this time.
0 commit comments