Python

Python

Made by DeepSource

if expression used can be simplified PYL-R1719

Anti-pattern
Minor
Autofix

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)