flake8 · flake8/E712
E712
Comparison to True or False
A value is compared to True or False using == or != rather than a truthiness check. Use 'if x:' or 'if not x:' instead of 'if x == True:'.
A value is compared to True or False using == or != rather than a truthiness check. Use 'if x:' or 'if not x:' instead of 'if x == True:'.