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 f8eb3cc commit bdd4b16Copy full SHA for bdd4b16
python/cocoindex/convert.py
@@ -90,9 +90,6 @@ 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
@@ -171,4 +168,4 @@ def dump_engine_object(v: Any) -> Any:
171
168
return [dump_engine_object(item) for item in v]
172
169
elif isinstance(v, dict):
173
170
return {k: dump_engine_object(v) for k, v in v.items()}
174
- return v
+ return v
0 commit comments