From 9f9cac25f2ca3d0d573f05a555a812fb6148d385 Mon Sep 17 00:00:00 2001 From: Navnit Shukla Date: Mon, 8 Jun 2026 14:41:53 -0700 Subject: [PATCH] fix: correct mypy type: ignore error codes (attr-defined) --- litellm/llms/snowflake/anthropic/transformation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/llms/snowflake/anthropic/transformation.py b/litellm/llms/snowflake/anthropic/transformation.py index 64bf607760d..c074ef8224b 100644 --- a/litellm/llms/snowflake/anthropic/transformation.py +++ b/litellm/llms/snowflake/anthropic/transformation.py @@ -188,7 +188,7 @@ class SnowflakeCortexAnthropicConfig(SnowflakeBaseConfig): content_blocks: List[Dict[str, Any]] = [] if content: content_blocks.append({"type": "text", "text": content}) - for tc in tool_calls: # type: ignore[union-attr] + for tc in tool_calls: # type: ignore[attr-defined] func = ( tc.get("function", {}) if isinstance(tc, dict) @@ -385,7 +385,7 @@ class SnowflakeCortexAnthropicConfig(SnowflakeBaseConfig): ) model_response.choices = [choice] - model_response.usage = usage # type: ignore[assignment] + model_response.usage = usage # type: ignore[attr-defined] model_response.model = "snowflake/" + response_json.get("model", model) model_response.id = response_json.get("id", "")