From 8e57d4d457c8b7dc6bc97646c65864ea3d593857 Mon Sep 17 00:00:00 2001 From: tarunag10 Date: Thu, 20 Aug 2026 12:57:19 +0530 Subject: [PATCH] style: apply repository Ruff import ordering --- litellm/responses/mcp/chat_completions_handler.py | 7 +++---- litellm/responses/mcp/litellm_proxy_mcp_handler.py | 1 - litellm/responses/mcp/mcp_streaming_iterator.py | 4 +--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/litellm/responses/mcp/chat_completions_handler.py b/litellm/responses/mcp/chat_completions_handler.py index 2b3c0d79192..73dba5ba441 100644 --- a/litellm/responses/mcp/chat_completions_handler.py +++ b/litellm/responses/mcp/chat_completions_handler.py @@ -3,13 +3,12 @@ import logging from typing import TYPE_CHECKING, Any, Final, cast -from litellm.responses.mcp.request_context import MCPRequestContext -from litellm.types.utils import Message, ModelResponse -from litellm.utils import CustomStreamWrapper - from litellm.responses.mcp.litellm_proxy_mcp_handler import ( LiteLLM_Proxy_MCP_Handler, ) +from litellm.responses.mcp.request_context import MCPRequestContext +from litellm.types.utils import Message, ModelResponse +from litellm.utils import CustomStreamWrapper if TYPE_CHECKING: from litellm.proxy._types import UserAPIKeyAuth diff --git a/litellm/responses/mcp/litellm_proxy_mcp_handler.py b/litellm/responses/mcp/litellm_proxy_mcp_handler.py index d2e9c8f37ba..6254e60bf20 100644 --- a/litellm/responses/mcp/litellm_proxy_mcp_handler.py +++ b/litellm/responses/mcp/litellm_proxy_mcp_handler.py @@ -1202,7 +1202,6 @@ class LiteLLM_Proxy_MCP_Handler: List of MCP tool execution events for streaming """ from litellm._uuid import uuid - from litellm.responses.mcp.mcp_streaming_iterator import create_mcp_call_events tool_execution_events: Final[list[ResponsesAPIStreamingResponse]] = [] diff --git a/litellm/responses/mcp/mcp_streaming_iterator.py b/litellm/responses/mcp/mcp_streaming_iterator.py index 89774568d57..8534e13aa06 100644 --- a/litellm/responses/mcp/mcp_streaming_iterator.py +++ b/litellm/responses/mcp/mcp_streaming_iterator.py @@ -23,9 +23,8 @@ from litellm.types.llms.openai import ( if TYPE_CHECKING: from litellm.proxy._types import UserAPIKeyAuth - from mcp.types import Tool as MCPTool - from litellm.responses.mcp.litellm_proxy_mcp_handler import MCPToolResult + from mcp.types import Tool as MCPTool else: MCPTool = Any @@ -767,7 +766,6 @@ class MCPEnhancedStreamingIterator(BaseResponsesAPIStreamingIterator): return from litellm.responses.main import aresponses - from litellm.responses.mcp.litellm_proxy_mcp_handler import ( LiteLLM_Proxy_MCP_Handler, )