Consider using in
instead of multiple ==
#602
Labels
help wanted
Extra attention is needed
level:starter
Good for newcomers
rule request
Adding a new rule
Milestone
Rule request
Thesis
When we have more than two
==
operators it is time to usein
operator.https://github.com/PyCQA/pylint/blob/5a86fddcb815ebd08fbc3ffcbaf7b11c2ba2e107/pylint/checkers/refactoring.py#L157
Reasoning
It makes your code more readable and allows to increase the
in
container even more without much pain.Original: #431
The text was updated successfully, but these errors were encountered: