Skip to content

Commit 19d82cd

Browse files
committed
more reduce
1 parent 0f94bec commit 19d82cd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

xarray/core/common.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,19 @@ def _reduce_method(cls, func: Callable, include_skipna: bool, numeric_only: bool
100100

101101
def wrapped_func(self, dim=None, skipna=None, **kwargs):
102102
return self.reduce(
103-
func, dim, skipna=skipna, numeric_only=numeric_only, **kwargs
103+
func=func,
104+
dim=dim,
105+
skipna=skipna,
106+
numeric_only=numeric_only,
107+
**kwargs,
104108
)
105109

106110
else:
107111

108112
def wrapped_func(self, dim=None, **kwargs): # type: ignore[misc]
109-
return self.reduce(func, dim, numeric_only=numeric_only, **kwargs)
113+
return self.reduce(
114+
func=func, dim=dim, numeric_only=numeric_only, **kwargs
115+
)
110116

111117
return wrapped_func
112118

0 commit comments

Comments
 (0)