From e4ee03f7a0e5dbe285df8fbf40cb13a841120747 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Wed, 6 Aug 2025 19:23:50 -0300 Subject: [PATCH] fix mypy --- router/payment/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/router/payment/models.py b/router/payment/models.py index c036592e..7b56b9ff 100644 --- a/router/payment/models.py +++ b/router/payment/models.py @@ -91,7 +91,9 @@ async def update_sats_pricing() -> None: ) mspp = model.sats_pricing.prompt mspc = model.sats_pricing.completion - if (tp:= model.top_provider) and tp.context_length or tp.max_completion_tokens: + if (tp := model.top_provider) and ( + tp.context_length or tp.max_completion_tokens + ): if (cl := model.top_provider.context_length) and ( mct := model.top_provider.max_completion_tokens ):