Skip to content

Commit e159879

Browse files
Unnecessary tuple/list literal (#10450)
Rewrite as set literal syntax.
1 parent 28a6b63 commit e159879

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

xarray/tests/test_computation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ def test_apply_dask_new_output_sizes_not_supplied_same_dim_names() -> None:
13971397
da,
13981398
input_core_dims=[["i", "j"]],
13991399
output_core_dims=[["i", "j"]],
1400-
exclude_dims=set(("i", "j")),
1400+
exclude_dims={"i", "j"},
14011401
dask="parallelized",
14021402
)
14031403

xarray/tests/test_datatree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,7 @@ def test_drop_nodes(self) -> None:
16571657

16581658
# test drop multiple nodes
16591659
dropped = sue.drop_nodes(names=["Mary", "Kate"])
1660-
assert not set(["Mary", "Kate"]).intersection(set(dropped.children))
1660+
assert not {"Mary", "Kate"}.intersection(set(dropped.children))
16611661
assert "Ashley" in dropped.children
16621662

16631663
# test raise

0 commit comments

Comments
 (0)