Skip to content

Commit ffdf1b3

Browse files
committed
Simplify monkey-patching the did_you_mean function
1 parent 6687b16 commit ffdf1b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graphql/pyutils/did_you_mean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
def did_you_mean(suggestions: Sequence[str], sub_message: Optional[str] = None) -> str:
99
"""Given [ A, B, C ] return ' Did you mean A, B, or C?'"""
10-
if not suggestions:
10+
if not suggestions or not MAX_LENGTH:
1111
return ""
1212
parts = [" Did you mean "]
1313
if sub_message:

0 commit comments

Comments
 (0)