Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 4, 2024
1 parent 977c7a4 commit 9588cf4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
8 changes: 3 additions & 5 deletions xarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -7252,11 +7252,9 @@ def resample(
offset: pd.Timedelta | datetime.timedelta | str | None = None,
origin: str | DatetimeLike = "start_day",
restore_coord_dims: bool | None = None,
**indexer_kwargs: str
| datetime.timedelta
| pd.Timedelta
| pd.DateOffset
| Resampler,
**indexer_kwargs: (
str | datetime.timedelta | pd.Timedelta | pd.DateOffset | Resampler
),
) -> DataArrayResample:
"""Returns a Resample object for performing resampling operations.
Expand Down
8 changes: 3 additions & 5 deletions xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -10693,11 +10693,9 @@ def resample(
offset: pd.Timedelta | datetime.timedelta | str | None = None,
origin: str | DatetimeLike = "start_day",
restore_coord_dims: bool | None = None,
**indexer_kwargs: str
| datetime.timedelta
| pd.Timedelta
| pd.DateOffset
| Resampler,
**indexer_kwargs: (
str | datetime.timedelta | pd.Timedelta | pd.DateOffset | Resampler
),
) -> DatasetResample:
"""Returns a Resample object for performing resampling operations.
Expand Down
8 changes: 3 additions & 5 deletions xarray/core/resample_cftime.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ class CFTimeGrouper:

def __init__(
self,
freq: str
| datetime.timedelta
| pd.Timedelta
| pd.DateOffset
| BaseCFTimeOffset,
freq: (
str | datetime.timedelta | pd.Timedelta | pd.DateOffset | BaseCFTimeOffset
),
closed: SideOptions | None = None,
label: SideOptions | None = None,
origin: str | CFTimeDatetime = "start_day",
Expand Down

0 comments on commit 9588cf4

Please sign in to comment.