Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,3 +313,5 @@ contributors:
* Andrzej Klajnert: contributor

* Andrés Pérez Hortal: contributor

* Niko Wenselowski: contributor
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ Release date: TBA

Close #2581

* Changed description of W0199 to use the term 2-item-tuple instead of 2-uple.


What's New in Pylint 2.3.0?
===========================

Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ class BasicChecker(_BasicChecker):
"re-raised.",
),
"W0199": (
"Assert called on a 2-uple. Did you mean 'assert x,y'?",
"Assert called on a 2-item-tuple. Did you mean 'assert x,y'?",
"assert-on-tuple",
"A call of assert on a tuple will always evaluate to true if "
"the tuple is not empty, and will always evaluate to false if "
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/assert_on_tuple.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
assert-on-tuple:5::Assert called on a 2-uple. Did you mean 'assert x,y'?
assert-on-tuple:11::Assert called on a 2-uple. Did you mean 'assert x,y'?
assert-on-tuple:5::Assert called on a 2-item-tuple. Did you mean 'assert x,y'?
assert-on-tuple:11::Assert called on a 2-item-tuple. Did you mean 'assert x,y'?