Skip to content

Commit 3d854e5

Browse files
committed
more reduce edits
1 parent 2bbddaf commit 3d854e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

xarray/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def wrapped_func(self, dim=None, axis=None, skipna=None, **kwargs):
6565
else:
6666

6767
def wrapped_func(self, dim=None, axis=None, **kwargs): # type: ignore[misc]
68-
return self.reduce(func, dim, axis, **kwargs)
68+
return self.reduce(func=func, dim=dim, axis=axis, **kwargs)
6969

7070
return wrapped_func
7171

xarray/core/groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,10 +838,10 @@ def reduce(
838838
self,
839839
func: Callable[..., Any],
840840
dim: Union[None, Hashable, Sequence[Hashable]] = None,
841+
*,
841842
axis: Union[None, int, Sequence[int]] = None,
842843
keep_attrs: bool = None,
843844
keepdims: bool = False,
844-
*,
845845
shortcut: bool = True,
846846
**kwargs: Any,
847847
):

0 commit comments

Comments
 (0)