From b9b2dd404ac6b967cffe6dcbedff273a9a57b485 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 15 Jul 2026 19:52:33 +0000 Subject: [PATCH] chore(videos): annotate untyped-boundary casts with cast-ok reasons for type-discipline gate --- litellm/proxy/video_endpoints/endpoints.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/proxy/video_endpoints/endpoints.py b/litellm/proxy/video_endpoints/endpoints.py index 18a6acfe4e1..abaa5296783 100644 --- a/litellm/proxy/video_endpoints/endpoints.py +++ b/litellm/proxy/video_endpoints/endpoints.py @@ -108,9 +108,9 @@ async def video_generation( user_api_base=user_api_base, version=version, ) - request_data = cast("dict[str, object]", data) + request_data = cast("dict[str, object]", data) # cast-ok: _read_request_body returns an untyped Dict return encode_video_id_in_response( - response=cast(object, response), + response=cast(object, response), # cast-ok: base_process_llm_request returns Any fallback_provider=coerce_optional_str(request_data.get("custom_llm_provider")), fallback_model_id=coerce_optional_str(request_data.get("model")), ) @@ -298,7 +298,7 @@ async def video_status( version=version, ) return encode_video_id_in_response( - response=cast(object, response), + response=cast(object, response), # cast-ok: base_process_llm_request returns Any fallback_provider=custom_llm_provider, fallback_model_id=model_id_from_decoded, )