From d9ef8746a92dfe4a7a250e65c7312dc3acb5247f Mon Sep 17 00:00:00 2001 From: jesus Date: Sat, 12 Sep 2026 19:15:12 +0000 Subject: [PATCH] fix(auth): drop Final annotation on loop-local target_group for basedpyright Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/auth/auth_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index d9020cc5daf..95c044fdab2 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -400,7 +400,7 @@ def _is_model_cost_zero(model: str | list[str] | None, llm_router: Router | None return False continue try: - target_group: Final = _resolve_cost_model_group(model_name, llm_router) + target_group = _resolve_cost_model_group(model_name, llm_router) # Use router's get_model_group_info method directly for better reliability model_group_info = llm_router.get_model_group_info(model_group=target_group)