Skip to content

Commit 3b18105

Browse files
okinPCManticore
authored andcommitted
W0199: Change description to use the term 2-item-tuple (#3033)
1 parent b21bcd7 commit 3b18105

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CONTRIBUTORS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,5 @@ contributors:
313313
* Andrzej Klajnert: contributor
314314

315315
* Andrés Pérez Hortal: contributor
316+
317+
* Niko Wenselowski: contributor

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ Release date: TBA
221221

222222
Close #2581
223223

224+
* Changed description of W0199 to use the term 2-item-tuple instead of 2-uple.
225+
226+
224227
What's New in Pylint 2.3.0?
225228
===========================
226229

pylint/checkers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ class BasicChecker(_BasicChecker):
953953
"re-raised.",
954954
),
955955
"W0199": (
956-
"Assert called on a 2-uple. Did you mean 'assert x,y'?",
956+
"Assert called on a 2-item-tuple. Did you mean 'assert x,y'?",
957957
"assert-on-tuple",
958958
"A call of assert on a tuple will always evaluate to true if "
959959
"the tuple is not empty, and will always evaluate to false if "
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
assert-on-tuple:5::Assert called on a 2-uple. Did you mean 'assert x,y'?
2-
assert-on-tuple:11::Assert called on a 2-uple. Did you mean 'assert x,y'?
1+
assert-on-tuple:5::Assert called on a 2-item-tuple. Did you mean 'assert x,y'?
2+
assert-on-tuple:11::Assert called on a 2-item-tuple. Did you mean 'assert x,y'?

0 commit comments

Comments
 (0)