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.
This commit is contained in:
Aliaksei Venski 2026-08-14 16:47:05 +02:00
parent 02bc18317d
commit a7894dbb37

View file

@ -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