We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd026a1 commit d2abf8dCopy full SHA for d2abf8d
pylint/checkers/typecheck.py
@@ -1188,7 +1188,7 @@ def _get_nomember_msgid_hint(
1188
return "no-member", ""
1189
names = [repr(name) for name in names]
1190
if len(names) == 1:
1191
- names_hint = ", ".join(names)
+ names_hint = names[0]
1192
else:
1193
names_hint = f"one of {', '.join(names[:-1])} or {names[-1]}"
1194
return "no-member", f"; maybe {names_hint}?"
0 commit comments