By DeepSource
All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Security
Style
Type check
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.
SOME_VALUE = condition and False or some_value
SOME_VALUE = some_value