Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Jan 13, 2025
1 parent ed6d600 commit f26f9d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xarray/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def did_you_mean(
--------
https://en.wikipedia.org/wiki/String_metric
"""
# Convert all values to string, get_close_matches doesn't handle all hashables:
possibilites_str: dict[str, Hashable] = {str(k): k for k in possibilities}

msg = ""
Expand Down

0 comments on commit f26f9d8

Please sign in to comment.