Closed MartinThoma closed 4 years ago
Use the condition directly (or bool(condition)) to get a boolean. Do not use the ternary operator.
bool(condition)
# Bad True if condition else False # Good condition
Rule
Use the condition directly (or
bool(condition)
) to get a boolean. Do not use the ternary operator.Example