Skip to content

Commit 04710d5

Browse files
neutrinoceroscphyc
andauthored
Update yt/utilities/exceptions.py
Co-authored-by: Corentin Cadiou <contact@cphyc.me>
1 parent 1571b9b commit 04710d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

yt/utilities/exceptions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ def _get_suggestions(self) -> list[FieldKey]:
115115
}
116116
field_str = str(field).lower()
117117
suggestions.extend(
118-
fields_str[k] for k in get_close_matches(field_str, fields_str.keys())
118+
fields_str[k] for k in get_close_matches(
119+
field_str,
120+
fields_str.keys(),
121+
n=len(fields_str),
122+
)
119123
)
120124

121125
# Ensure we suggest (ftype, fname), with alternative ftype

0 commit comments

Comments
 (0)