Skip to content

Commit c3fe02c

Browse files
committed
Fix type error
1 parent 3e9d494 commit c3fe02c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xarray/computation/nanops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _maybe_null_out(result, axis, mask, min_count=1):
3131

3232
elif (dtype := getattr(result, "dtype", None)) and getattr(
3333
dtype, "kind", None
34-
) not in "mM":
34+
) not in ("m", "M"):
3535
null_mask = mask.size - duck_array_ops.sum(mask)
3636
result = where(null_mask < min_count, np.nan, result)
3737

0 commit comments

Comments
 (0)