Skip to content

Commit

Permalink
Run pyupgrade on core/groupby (#6351)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Illviljan and pre-commit-ci[bot] authored Mar 13, 2022
1 parent 229dad9 commit d535a3b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions xarray/core/groupby.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from __future__ import annotations

import datetime
import warnings
from typing import Any, Callable, Hashable, Sequence, Union
from typing import Any, Callable, Hashable, Sequence

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -869,9 +871,9 @@ def _combine(self, applied, shortcut=False):
def reduce(
self,
func: Callable[..., Any],
dim: Union[None, Hashable, Sequence[Hashable]] = None,
dim: None | Hashable | Sequence[Hashable] = None,
*,
axis: Union[None, int, Sequence[int]] = None,
axis: None | int | Sequence[int] = None,
keep_attrs: bool = None,
keepdims: bool = False,
shortcut: bool = True,
Expand Down Expand Up @@ -997,9 +999,9 @@ def _combine(self, applied):
def reduce(
self,
func: Callable[..., Any],
dim: Union[None, Hashable, Sequence[Hashable]] = None,
dim: None | Hashable | Sequence[Hashable] = None,
*,
axis: Union[None, int, Sequence[int]] = None,
axis: None | int | Sequence[int] = None,
keep_attrs: bool = None,
keepdims: bool = False,
**kwargs: Any,
Expand Down

0 comments on commit d535a3b

Please sign in to comment.