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 385487f commit f8eb3ccCopy full SHA for f8eb3cc
python/cocoindex/convert.py
@@ -90,6 +90,9 @@ def decode(value):
90
field_path.pop()
91
return decode
92
93
+ if src_type_kind == 'Union':
94
+ return lambda value: value.elem_type | None if value.nullable else value.elem_type
95
+
96
if src_type_kind == 'Uuid':
97
return lambda value: uuid.UUID(bytes=value)
98
@@ -168,4 +171,4 @@ def dump_engine_object(v: Any) -> Any:
168
171
return [dump_engine_object(item) for item in v]
169
172
elif isinstance(v, dict):
170
173
return {k: dump_engine_object(v) for k, v in v.items()}
- return v
174
+ return v
0 commit comments