style(cost): drop unused cast-ok marker for LIT013
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
Terraform Modules / fmt, validate, test (gcp) (push) Has been cancelled
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-09-28 18:28:17 +00:00
parent aab4cd6b70
commit 0761288974

View file

@ -250,9 +250,7 @@ class StandardBuiltInToolCostTracking:
@staticmethod
def _image_generation_tool_model(response_object: ResponsesAPIResponse) -> str:
tools: Final[list[object]] = cast(
list[object], getattr(response_object, "tools", None) or []
) # cast-ok: tools entries may be dicts or pydantic objects
tools: Final[list[object]] = cast(list[object], getattr(response_object, "tools", None) or [])
for tool in tools:
if _output_item_field(tool, "type") != "image_generation":
continue