fix: satisfy ruff line length

This commit is contained in:
3252a8
2026-06-01 11:11:15 +03:00
parent 939bc37995
commit 21079f78dc
12 changed files with 60 additions and 15 deletions
@@ -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))