mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
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.
This commit is contained in:
parent
b4a52179e2
commit
78346a322b
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue