Skip to content

Commit d8d5a33

Browse files
Apply ruff/flake8-pie rule PIE804
PIE804 Unnecessary `dict` kwargs
1 parent 4b8c78f commit d8d5a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/tests/test_groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1936,7 +1936,7 @@ def test_resample_bad_resample_dim(self) -> None:
19361936
times = pd.date_range("2000-01-01", freq="6h", periods=10)
19371937
array = DataArray(np.arange(10), [("__resample_dim__", times)])
19381938
with pytest.raises(ValueError, match=r"Proxy resampling dimension"):
1939-
array.resample(**{"__resample_dim__": "1D"}).first() # type: ignore[arg-type]
1939+
array.resample(__resample_dim__="1D").first()
19401940

19411941
@requires_scipy
19421942
def test_resample_drop_nondim_coords(self) -> None:

0 commit comments

Comments
 (0)