From 06b2d76c24ec0d0a36d5636a2b1caf5983b12442 Mon Sep 17 00:00:00 2001 From: jibanez-staticduo Date: Wed, 30 Sep 2026 14:08:29 +0200 Subject: [PATCH] chore(live): record why the group-limit comprehension spans two loops --- litellm/proxy/realtime_endpoints/live.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/proxy/realtime_endpoints/live.py b/litellm/proxy/realtime_endpoints/live.py index e6fb8f7bc6d..26724a5146d 100644 --- a/litellm/proxy/realtime_endpoints/live.py +++ b/litellm/proxy/realtime_endpoints/live.py @@ -881,6 +881,7 @@ async def _live_fetch_group_limits(groups: tuple[str, ...]) -> tuple[LiteLLM_Bud rows: Final = tuple( [ row + # comprehension-ok: one iteration per IN_LIST_CHUNK_SIZE slice of group names for start in range(0, len(unique_groups), IN_LIST_CHUNK_SIZE) for row in await table.find_many( where={ # mutable-ok: Prisma serializes query filters from concrete dictionaries