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 b149584 commit 8dee62eCopy full SHA for 8dee62e
python/cocoindex/typing.py
@@ -183,11 +183,7 @@ def _encode_type(type_info: AnalyzedTypeInfo) -> dict[str, Any]:
183
if type_info.elem_type is None:
184
raise ValueError(f"{type_info.kind} type must have an element type")
185
row_type_info = analyze_type_info(type_info.elem_type)
186
- if row_type_info.dataclass_type is None:
187
- raise ValueError(f"{type_info.kind} type must have a dataclass type")
188
- encoded_type['row'] = {
189
- 'fields': _encode_fields_schema(row_type_info.dataclass_type),
190
- }
+ encoded_type['row'] = _encode_type(row_type_info)
191
192
return encoded_type
193
0 commit comments