From a7894dbb37da0d54acca2dfbee3de5152d12a994 Mon Sep 17 00:00:00 2001 From: Aliaksei Venski Date: Fri, 14 Aug 2026 16:47:05 +0200 Subject: [PATCH] fix(mcp): suppress TID251 for the Any that mirrors ClientSession.call_tool typing.Any is banned repo-wide (TID251) in favor of concrete types, but TolerantClientSession.call_tool's dict[str, Any] parameters exist only to match mcp.ClientSession.call_tool's real signature verbatim (documented in the class docstring), so there's no concrete type to substitute without breaking the override contract. --- litellm/experimental_mcp_client/tolerant_result.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/experimental_mcp_client/tolerant_result.py b/litellm/experimental_mcp_client/tolerant_result.py index 5dbf6561c16..222ae1428f1 100644 --- a/litellm/experimental_mcp_client/tolerant_result.py +++ b/litellm/experimental_mcp_client/tolerant_result.py @@ -15,7 +15,7 @@ import base64 import json from collections.abc import Mapping, Sequence from datetime import timedelta -from typing import Any, Final, Literal, TypedDict +from typing import Any, Final, Literal, TypedDict # noqa: TID251 # matches ClientSession.call_tool's real signature from mcp import ClientSession, types from mcp.shared.session import ProgressFnT