Skip to content

Commit 534c791

Browse files
committed
Update encoded type field
1 parent bdd4b16 commit 534c791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/cocoindex/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def _encode_type(type_info: AnalyzedTypeInfo) -> dict[str, Any]:
235235
elif type_info.kind == 'Union':
236236
if type_info.elem_type is not types.UnionType:
237237
raise ValueError("Union type must have a union-typed element type")
238-
encoded_type['element_type'] = [
238+
encoded_type['types'] = [
239239
_encode_type(analyze_type_info(typ)) for typ in typing.get_args(type_info.elem_type)
240240
]
241241

0 commit comments

Comments
 (0)