Python

Python

Made by DeepSource

Simplify boolean expression PYL-R1709

Anti-pattern
Major

The boolean expression with redundant pre-python 2.5 ternary syntax is used and can be simplified for better readability. Please look at the issue text for suggestion.

Not preferred:

SOME_VALUE = condition and False or some_value

Preferred:

SOME_VALUE = some_value