Skip to content

Commit 322a538

Browse files
committed
Fix mypy error expecting bool not np.bool
1 parent e2a82d2 commit 322a538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cf_xarray/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def _is_bounds_monotonic(bounds: np.ndarray) -> bool:
368368
if nonzero_diffs.size == 0:
369369
return True
370370

371-
return np.all(nonzero_diffs > 0) or np.all(nonzero_diffs < 0)
371+
return bool(np.all(nonzero_diffs > 0) or np.all(nonzero_diffs < 0))
372372

373373

374374
def _get_order_of_core_dims(core_dim_orders: dict[str, str]) -> str:

0 commit comments

Comments
 (0)