misplaced-comparison-constant / C2201#
Message emitted:
Comparison should be %s
Description:
Used when the constant is placed on the left side of a comparison. It is usually clearer in intent to place it in the right hand side of the comparison.
Correct code:
# This is a placeholder for correct code for this message.
Additional details:
You can help us make the doc better by contributing !
Note
This message is emitted by the optional 'comparison-placement' checker which requires the pylint.extensions.comparison_placement
plugin to be loaded.
Created by the comparison-placement checker.