diff --git a/xarray/core/utils.py b/xarray/core/utils.py index c939a7b037e..c3187b77722 100644 --- a/xarray/core/utils.py +++ b/xarray/core/utils.py @@ -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 = ""