Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xarray/indexes/nd_point_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def from_variables(
*,
options: Mapping[str, Any],
) -> Self:
if len(set([var.dims for var in variables.values()])) > 1:
if len({var.dims for var in variables.values()}) > 1:
var_names = ",".join(vn for vn in variables)
raise ValueError(
f"variables {var_names} must all have the same dimensions and the same shape"
Expand Down
Loading