From 3b18105c7bc98544fb864cb2e53c1bf25869ce96 Mon Sep 17 00:00:00 2001 From: Niko Wenselowski Date: Tue, 6 Aug 2019 16:44:05 +0200 Subject: [PATCH] W0199: Change description to use the term 2-item-tuple (#3033) --- CONTRIBUTORS.txt | 2 ++ ChangeLog | 3 +++ pylint/checkers/base.py | 2 +- tests/functional/assert_on_tuple.txt | 4 ++-- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index caab285cd..327f32cc8 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -313,3 +313,5 @@ contributors: * Andrzej Klajnert: contributor * Andrés Pérez Hortal: contributor + +* Niko Wenselowski: contributor diff --git a/ChangeLog b/ChangeLog index 6f5406114..473c3be8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -221,6 +221,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? =========================== diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index fdddd555d..8dac6e1d0 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -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 " diff --git a/tests/functional/assert_on_tuple.txt b/tests/functional/assert_on_tuple.txt index 52d1ca5da..196e3fc66 100644 --- a/tests/functional/assert_on_tuple.txt +++ b/tests/functional/assert_on_tuple.txt @@ -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'?