From 78346a322b9b595b70d38abe5ab2c4ce7c361017 Mon Sep 17 00:00:00 2001 From: Thomas Menard Date: Sun, 3 May 2026 23:51:16 +0200 Subject: [PATCH] fix(types): make FetchTool fetch_tool_name and litellm_params optional Fix MyPy errors in fetch_tool_management.py where FetchTool(**data) was used without guaranteed fetch_tool_name and litellm_params keys. Making fields optional eliminates [typeddict-item] errors. --- litellm/types/fetch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/types/fetch.py b/litellm/types/fetch.py index 9c9151236fa..c269e15d9d5 100644 --- a/litellm/types/fetch.py +++ b/litellm/types/fetch.py @@ -47,8 +47,8 @@ class FetchTool(TypedDict, total=False): """ fetch_tool_id: Optional[str] - fetch_tool_name: Required[str] - litellm_params: Required[FetchToolLiteLLMParams] + fetch_tool_name: Optional[str] + litellm_params: Optional[FetchToolLiteLLMParams] fetch_tool_info: Optional[dict] created_at: Optional[str] updated_at: Optional[str]