Skip to content

Commit edcd26d

Browse files
authored
Fix mypy failures (#7343)
1 parent 43ec7a9 commit edcd26d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

xarray/tests/test_groupby.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ def test_da_groupby_quantile() -> None:
235235
dims=("x", "y"),
236236
)
237237

238-
actual_x = array.groupby("x").quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818
238+
actual_x = array.groupby("x").quantile(0, dim=...)
239239
expected_x = xr.DataArray(
240240
data=[1, 4], coords={"x": [1, 2], "quantile": 0}, dims="x"
241241
)
242242
assert_identical(expected_x, actual_x)
243243

244-
actual_y = array.groupby("y").quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818
244+
actual_y = array.groupby("y").quantile(0, dim=...)
245245
expected_y = xr.DataArray(
246246
data=[1, 22], coords={"y": [0, 1], "quantile": 0}, dims="y"
247247
)
@@ -272,7 +272,7 @@ def test_da_groupby_quantile() -> None:
272272
)
273273
g = foo.groupby(foo.time.dt.month)
274274

275-
actual = g.quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818
275+
actual = g.quantile(0, dim=...)
276276
expected = xr.DataArray(
277277
data=[
278278
0.0,
@@ -356,11 +356,11 @@ def test_ds_groupby_quantile() -> None:
356356
coords={"x": [1, 1, 1, 2, 2], "y": [0, 0, 1]},
357357
)
358358

359-
actual_x = ds.groupby("x").quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818
359+
actual_x = ds.groupby("x").quantile(0, dim=...)
360360
expected_x = xr.Dataset({"a": ("x", [1, 4])}, coords={"x": [1, 2], "quantile": 0})
361361
assert_identical(expected_x, actual_x)
362362

363-
actual_y = ds.groupby("y").quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818
363+
actual_y = ds.groupby("y").quantile(0, dim=...)
364364
expected_y = xr.Dataset({"a": ("y", [1, 22])}, coords={"y": [0, 1], "quantile": 0})
365365
assert_identical(expected_y, actual_y)
366366

@@ -386,7 +386,7 @@ def test_ds_groupby_quantile() -> None:
386386
)
387387
g = foo.groupby(foo.time.dt.month)
388388

389-
actual = g.quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818
389+
actual = g.quantile(0, dim=...)
390390
expected = xr.Dataset(
391391
{
392392
"a": (

0 commit comments

Comments
 (0)