From 525c04577c8935df983b6d4fd3f947818deb4fce Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 22 Sep 2022 14:45:11 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xarray/core/nanops.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xarray/core/nanops.py b/xarray/core/nanops.py index fe8b2e784a7..94676e9dda2 100644 --- a/xarray/core/nanops.py +++ b/xarray/core/nanops.py @@ -24,7 +24,6 @@ def _replace_nan(a, val): return where_method(val, mask, a), mask - def _maybe_null_out(result, axis, mask, min_count=1): """ xarray version of pandas.core.nanops._maybe_null_out @@ -106,7 +105,7 @@ def nansum(a, axis=None, dtype=None, out=None, min_count=None): result = xp.sum(a, axis=axis, dtype=dtype) else: mask = isnull(a) - result = np.nansum(a, axis=axis, dtype=dtype) + result = np.nansum(a, axis=axis, dtype=dtype) if min_count is not None: return _maybe_null_out(result, axis, mask, min_count) else: