Skip to content

Commit 8e50d5e

Browse files
committed
Fix mypy
1 parent 78ee425 commit 8e50d5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

xarray/core/groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def _parse_group_and_groupers(
374374
group: GroupInput,
375375
groupers: dict[str, Grouper],
376376
*,
377-
eagerly_compute_group: bool,
377+
eagerly_compute_group: Literal[False],
378378
) -> tuple[ResolvedGrouper, ...]:
379379
from xarray.core.dataarray import DataArray
380380
from xarray.core.variable import Variable

xarray/tests/test_groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2920,7 +2920,7 @@ def test_multiple_groupers(use_flox: bool, shuffle: bool) -> None:
29202920
coords={"xy": ("xy", ["a", "b", "c"], {"foo": "bar"})},
29212921
)
29222922
with raise_if_dask_computes(max_computes=0):
2923-
gb = b.groupby(x=UniqueGrouper(), xy=UniqueGrouper(labels=["a", "b", "c"])) # type: ignore[arg-type]
2923+
gb = b.groupby(x=UniqueGrouper(), xy=UniqueGrouper(labels=["a", "b", "c"]))
29242924
assert is_chunked_array(gb.encoded.codes.data)
29252925
assert not gb.encoded.group_indices
29262926
if has_flox:

0 commit comments

Comments
 (0)