Skip to content

Commit

Permalink
Discard useless !s conversion in f-string (#9752)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored Nov 8, 2024
1 parent 7e2e76e commit a78f45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ def parse_ordered_dims(
def _check_dims(dim: Set[Hashable], all_dims: Set[Hashable]) -> None:
wrong_dims = (dim - all_dims) - {...}
if wrong_dims:
wrong_dims_str = ", ".join(f"'{d!s}'" for d in wrong_dims)
wrong_dims_str = ", ".join(f"'{d}'" for d in wrong_dims)
raise ValueError(
f"Dimension(s) {wrong_dims_str} do not exist. Expected one or more of {all_dims}"
)
Expand Down

0 comments on commit a78f45a

Please sign in to comment.