All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
if
The if expression used here can be simplified to increase the code readability. Example:
value = True if arg else False
This can be simplified into:
value = bool(arg)