mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
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:
parent
02bc18317d
commit
a7894dbb37
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue