Skip to content

Commit

Permalink
Update pylint/checkers/typecheck.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
  • Loading branch information
Pierre-Sassoulas and jacobtylerwalls authored Dec 2, 2024
1 parent fd026a1 commit d2abf8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint/checkers/typecheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ def _get_nomember_msgid_hint(
return "no-member", ""
names = [repr(name) for name in names]
if len(names) == 1:
names_hint = ", ".join(names)
names_hint = names[0]
else:
names_hint = f"one of {', '.join(names[:-1])} or {names[-1]}"
return "no-member", f"; maybe {names_hint}?"
Expand Down

0 comments on commit d2abf8d

Please sign in to comment.