From 930b1cfc585553351fd89df14c0abb29ac81bc5f Mon Sep 17 00:00:00 2001 From: kigland Date: Mon, 26 Oct 2026 13:34:06 +0800 Subject: [PATCH] satisfy type gate for tool listing --- litellm/mcp_client/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/mcp_client/tools.py b/litellm/mcp_client/tools.py index b1faa829712..dc92a8b650d 100644 --- a/litellm/mcp_client/tools.py +++ b/litellm/mcp_client/tools.py @@ -138,7 +138,7 @@ async def list_tools_with_pagination( # after decoding: it filters invalid x-mcp-header annotations and # records the derived header/output-schema state used by tools/call. # Keep those semantics when injecting the lenient result model. - result = session._absorb_tool_listing( + result = session._absorb_tool_listing( # pyright: ignore[reportPrivateUsage] # no public equivalent result, complete=cursor is None and result.next_cursor is None, )