uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

if expression used can be simplified PYL-R1719
Anti-pattern
Minor
a year agoa year old
The if expression can be replaced with 'bool(test)'
1319            instance.switch_subscription_bp(new_bp)
1320        elif validated_data.get("status") or new_bp:
1321            replace_type = validated_data.get("replace_immediately_type")
1322            prorate = True if new_bp else False1323            bill_usage = (
1324                replace_type
1325                == REPLACE_IMMEDIATELY_TYPE.END_CURRENT_SUBSCRIPTION_AND_BILL