fix: satisfy ruff line length
This commit is contained in:
@@ -43,7 +43,11 @@ class RenewalMixin:
|
||||
months = sub.duration_months or 1
|
||||
currency = default_payment_currency_code_for_settings(self.settings)
|
||||
amount = None
|
||||
tariffs_config = self._tariffs_config() if callable(getattr(self, "_tariffs_config", None)) else None
|
||||
tariffs_config = (
|
||||
self._tariffs_config()
|
||||
if callable(getattr(self, "_tariffs_config", None))
|
||||
else None
|
||||
)
|
||||
if tariffs_config and callable(getattr(self, "_resolve_tariff", None)):
|
||||
try:
|
||||
tariff = self._resolve_tariff(getattr(sub, "tariff_key", None))
|
||||
|
||||
Reference in New Issue
Block a user