pylint-errors

C0122 (misplaced-comparison-constant)

:x: Problematic code:

foo = 10
if 10 == foo:
    pass

:heavy_check_mark: Correct code:

foo = 10
if foo == 10:
    pass

Rationale:

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.