diff options
author | Julthep Nandakwang <julthep@nandakwang.com> | 2022-06-17 12:09:40 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-17 07:09:40 +0200 |
commit | 1086b8beecb264d95f2cade9167c8c01f98020eb (patch) | |
tree | 64439cec5a812d2547f4a07e3f9a9581c6f98dc8 /pylint/checkers/refactoring/refactoring_checker.py | |
parent | bc7f8dac5a1d9ac2a1f6966029f5fc134d139f2f (diff) | |
download | pylint-git-1086b8beecb264d95f2cade9167c8c01f98020eb.tar.gz |
[consider-using-in] Add 'sets' in the message description (#6966)
Diffstat (limited to 'pylint/checkers/refactoring/refactoring_checker.py')
-rw-r--r-- | pylint/checkers/refactoring/refactoring_checker.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pylint/checkers/refactoring/refactoring_checker.py b/pylint/checkers/refactoring/refactoring_checker.py index 7b5922041..1837eebc1 100644 --- a/pylint/checkers/refactoring/refactoring_checker.py +++ b/pylint/checkers/refactoring/refactoring_checker.py @@ -323,9 +323,9 @@ class RefactoringChecker(checkers.BaseTokenChecker): "R1714": ( 'Consider merging these comparisons with "in" to %r', "consider-using-in", - "To check if a variable is equal to one of many values," - 'combine the values into a tuple and check if the variable is contained "in" it ' - "instead of checking for equality against each of the values." + "To check if a variable is equal to one of many values, " + 'combine the values into a set or tuple and check if the variable is contained "in" it ' + "instead of checking for equality against each of the values. " "This is faster and less verbose.", ), "R1715": ( |