We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdd4b16 commit 534c791Copy full SHA for 534c791
python/cocoindex/typing.py
@@ -235,7 +235,7 @@ def _encode_type(type_info: AnalyzedTypeInfo) -> dict[str, Any]:
235
elif type_info.kind == 'Union':
236
if type_info.elem_type is not types.UnionType:
237
raise ValueError("Union type must have a union-typed element type")
238
- encoded_type['element_type'] = [
+ encoded_type['types'] = [
239
_encode_type(analyze_type_info(typ)) for typ in typing.get_args(type_info.elem_type)
240
]
241
0 commit comments