Skip to content
forked from pydata/xarray

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 Jan 3, 2024
1 parent d13fa0e commit d7be352
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xarray/core/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,9 @@ def _validate_groupby_squeeze(squeeze: bool | None) -> None:
# A future version could make squeeze kwarg only, but would face
# backward-compat issues.
if squeeze is not None and not isinstance(squeeze, bool):
raise TypeError(f"`squeeze` must be None, True or False, but {squeeze} was supplied")
raise TypeError(
f"`squeeze` must be None, True or False, but {squeeze} was supplied"
)


def _resolve_group(obj: T_Xarray, group: T_Group | Hashable) -> T_Group:
Expand Down

0 comments on commit d7be352

Please sign in to comment.