We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1571b9b commit 04710d5Copy full SHA for 04710d5
yt/utilities/exceptions.py
@@ -115,7 +115,11 @@ def _get_suggestions(self) -> list[FieldKey]:
115
}
116
field_str = str(field).lower()
117
suggestions.extend(
118
- fields_str[k] for k in get_close_matches(field_str, fields_str.keys())
+ fields_str[k] for k in get_close_matches(
119
+ field_str,
120
+ fields_str.keys(),
121
+ n=len(fields_str),
122
+ )
123
)
124
125
# Ensure we suggest (ftype, fname), with alternative ftype
0 commit comments