Skip to content

Commit a0b252d

Browse files
committed
fix: fix create pure python class iteratively
1 parent aa15b9e commit a0b252d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docarray/utils/create_dynamic_doc_class.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ class MyDoc(BaseDoc):
6767
try:
6868
if safe_issubclass(field, DocList):
6969
t: Any = field.doc_type
70-
fields[field_name] = (List[t], field_info)
70+
t_aux = create_pure_python_type_model(t)
71+
fields[field_name] = (List[t_aux], field_info)
7172
else:
7273
fields[field_name] = (field, field_info)
7374
except TypeError:

0 commit comments

Comments
 (0)