From 8983eefea57ea39d143f22103b7fa259d5518269 Mon Sep 17 00:00:00 2001 From: jesus Date: Fri, 18 Sep 2026 21:30:32 +0000 Subject: [PATCH] fix(auth): drop redundant cast on team_object in centralized checks Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/auth/user_api_key_auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py index ced86318d7b..b4d8648c8a9 100644 --- a/litellm/proxy/auth/user_api_key_auth.py +++ b/litellm/proxy/auth/user_api_key_auth.py @@ -2901,7 +2901,7 @@ async def _run_centralized_common_checks( await _inherit_org_identity( user_api_key_auth_obj=user_api_key_auth_obj, - team_object=cast(LiteLLM_TeamTableCachedObj | None, team_object), + team_object=team_object, prisma_client=prisma_client, user_api_key_cache=user_api_key_cache, parent_otel_span=parent_otel_span,