From 6fb7b9521f2b918a17d15979028e2feaab10958b Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Tue, 28 Oct 2025 16:26:08 -0700 Subject: [PATCH] Remove unnecessary type ignore using Sequence covariance --- .../providers/inline/agents/meta_reference/responses/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/llama_stack/providers/inline/agents/meta_reference/responses/utils.py b/src/llama_stack/providers/inline/agents/meta_reference/responses/utils.py index 1a36998fc..26af1d595 100644 --- a/src/llama_stack/providers/inline/agents/meta_reference/responses/utils.py +++ b/src/llama_stack/providers/inline/agents/meta_reference/responses/utils.py @@ -72,8 +72,7 @@ async def convert_chat_choice_to_response_message( return OpenAIResponseMessage( id=message_id or f"msg_{uuid.uuid4()}", - # List invariance: annotations is list of specific type, but parameter expects union - content=[OpenAIResponseOutputMessageContentOutputText(text=clean_text, annotations=list(annotations))], # type: ignore[arg-type] + content=[OpenAIResponseOutputMessageContentOutputText(text=clean_text, annotations=list(annotations))], status="completed", role="assistant", )