From f40995418bb923844bb2167d532ad2b2183937ba Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 11 Apr 2026 11:09:55 -0700 Subject: [PATCH] fix(types): annotate ANTHROPIC_ADVISOR_TOOL_TYPE as Literal to satisfy mypy --- litellm/types/llms/anthropic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/types/llms/anthropic.py b/litellm/types/llms/anthropic.py index c76f27bdd6c..e3f63d05742 100644 --- a/litellm/types/llms/anthropic.py +++ b/litellm/types/llms/anthropic.py @@ -126,7 +126,7 @@ class AnthropicToolSearchToolBM25(TypedDict, total=False): input_examples: Optional[List[Dict[str, Any]]] -ANTHROPIC_ADVISOR_TOOL_TYPE = "advisor_20260301" +ANTHROPIC_ADVISOR_TOOL_TYPE: Literal["advisor_20260301"] = "advisor_20260301" class AnthropicAdvisorTool(TypedDict, total=False):