pylint-errors

C0121 (singleton-comparison)

:x: Problematic code:

foo = True
if foo == True:
    pass

:heavy_check_mark: Correct code:

foo = True
if foo:
    pass

Rationale:

Used when an expression is compared to singleton values like True, False or None.