From e706577b1220cbb335383988d574ea8470763f41 Mon Sep 17 00:00:00 2001 From: Gee <17325189+GeeCastro@users.noreply.github.com> Date: Tue, 16 Dec 2025 17:14:19 +0000 Subject: [PATCH] fix: types.ContentListUnion and types.ContentListUnionDict type hint --- google/genai/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google/genai/types.py b/google/genai/types.py index d421a36bf..4f938d4b4 100644 --- a/google/genai/types.py +++ b/google/genai/types.py @@ -5405,10 +5405,10 @@ class GenerateContentConfigDict(TypedDict, total=False): ] -ContentListUnion = Union[ContentUnion, list[ContentUnion]] +ContentListUnion = Union[ContentUnion, Sequence[ContentUnion]] -ContentListUnionDict = Union[ContentUnionDict, list[ContentUnionDict]] +ContentListUnionDict = Union[ContentUnionDict, Sequence[ContentUnionDict]] class _GenerateContentParameters(_common.BaseModel):