From 42c27d11dc68c486e293be7cb120d4db7c6cd8d6 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 18 Sep 2026 20:39:18 +0000 Subject: [PATCH] style(cost): noqa the cast import for image generation tool cost Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../llm_cost_calc/tool_call_cost_tracking.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py b/litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py index e7fa3454411..c5bfcaba0d5 100644 --- a/litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py +++ b/litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py @@ -3,7 +3,11 @@ Helper utilities for tracking the cost of built-in tools. """ from collections.abc import Mapping -from typing import Final, Literal, cast +from typing import ( + Final, + Literal, + cast, # noqa: TID251 # narrows SDK-union output items and dict fallbacks into typed views +) from pydantic import ValidationError