From 27e85e5551d524c9099f1dfe567b5837a2c11019 Mon Sep 17 00:00:00 2001 From: dcherian Date: Thu, 1 Dec 2022 10:15:46 -0700 Subject: [PATCH] Fix mypy failures --- xarray/tests/test_groupby.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xarray/tests/test_groupby.py b/xarray/tests/test_groupby.py index 063dc22e633..335f31de7b7 100644 --- a/xarray/tests/test_groupby.py +++ b/xarray/tests/test_groupby.py @@ -235,13 +235,13 @@ def test_da_groupby_quantile() -> None: dims=("x", "y"), ) - actual_x = array.groupby("x").quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818 + actual_x = array.groupby("x").quantile(0, dim=...) expected_x = xr.DataArray( data=[1, 4], coords={"x": [1, 2], "quantile": 0}, dims="x" ) assert_identical(expected_x, actual_x) - actual_y = array.groupby("y").quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818 + actual_y = array.groupby("y").quantile(0, dim=...) expected_y = xr.DataArray( data=[1, 22], coords={"y": [0, 1], "quantile": 0}, dims="y" ) @@ -272,7 +272,7 @@ def test_da_groupby_quantile() -> None: ) g = foo.groupby(foo.time.dt.month) - actual = g.quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818 + actual = g.quantile(0, dim=...) expected = xr.DataArray( data=[ 0.0, @@ -356,11 +356,11 @@ def test_ds_groupby_quantile() -> None: coords={"x": [1, 1, 1, 2, 2], "y": [0, 0, 1]}, ) - actual_x = ds.groupby("x").quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818 + actual_x = ds.groupby("x").quantile(0, dim=...) expected_x = xr.Dataset({"a": ("x", [1, 4])}, coords={"x": [1, 2], "quantile": 0}) assert_identical(expected_x, actual_x) - actual_y = ds.groupby("y").quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818 + actual_y = ds.groupby("y").quantile(0, dim=...) expected_y = xr.Dataset({"a": ("y", [1, 22])}, coords={"y": [0, 1], "quantile": 0}) assert_identical(expected_y, actual_y) @@ -386,7 +386,7 @@ def test_ds_groupby_quantile() -> None: ) g = foo.groupby(foo.time.dt.month) - actual = g.quantile(0, dim=...) # type: ignore[arg-type] # https://github.com/python/mypy/issues/7818 + actual = g.quantile(0, dim=...) expected = xr.Dataset( { "a": (