Skip to content

Commit

Permalink
more reduce edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Nov 20, 2021
1 parent 2bbddaf commit 3d854e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xarray/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def wrapped_func(self, dim=None, axis=None, skipna=None, **kwargs):
else:

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

return wrapped_func

Expand Down
2 changes: 1 addition & 1 deletion xarray/core/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,10 +838,10 @@ def reduce(
self,
func: Callable[..., Any],
dim: Union[None, Hashable, Sequence[Hashable]] = None,
*,
axis: Union[None, int, Sequence[int]] = None,
keep_attrs: bool = None,
keepdims: bool = False,
*,
shortcut: bool = True,
**kwargs: Any,
):
Expand Down

0 comments on commit 3d854e5

Please sign in to comment.