From dcd0722da988216e52eb46eb20f17e1819ef5416 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 7 Mar 2026 12:37:06 -0800 Subject: [PATCH] fix: suppress PLR0915 on openapi_oauth2_callback (complex OAuth2 flow function) --- .../proxy/_experimental/mcp_server/openapi_oauth2_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/_experimental/mcp_server/openapi_oauth2_endpoints.py b/litellm/proxy/_experimental/mcp_server/openapi_oauth2_endpoints.py index 7dda962bf3e..8bbc8e232bb 100644 --- a/litellm/proxy/_experimental/mcp_server/openapi_oauth2_endpoints.py +++ b/litellm/proxy/_experimental/mcp_server/openapi_oauth2_endpoints.py @@ -267,7 +267,7 @@ async def openapi_oauth2_connect( @router.get("/v1/mcp/oauth2/callback", include_in_schema=False, response_model=None) -async def openapi_oauth2_callback( +async def openapi_oauth2_callback( # noqa: PLR0915 request: Request, code: Optional[str] = Query(default=None), state: Optional[str] = Query(default=None),