From 445b209e4249d8a4316b72bb3cddd31e86ba0468 Mon Sep 17 00:00:00 2001 From: lei_lei <96427312+leilei3167@users.noreply.github.com> Date: Sun, 30 Aug 2026 12:32:31 +0800 Subject: [PATCH] fix: avoid Final binding inside drain loop --- litellm/proxy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 99260a930a7..24895d8643d 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -6406,7 +6406,7 @@ async def drain_spend_logs_queue( for _ in range(MAX_SPEND_LOG_DRAIN_ITERATIONS): if await _total_queued_spend_transactions(prisma_client) == 0: return - remaining_seconds: Final = deadline - time.monotonic() + remaining_seconds = deadline - time.monotonic() if remaining_seconds <= 0: break await update_spend_logs_job(