Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
replace usage of issubclass with safe_issubclass in `BaseDocWitho…
…utId`

Signed-off-by: YuXuan Tay <[email protected]>
  • Loading branch information
yxtay authored Aug 14, 2024
commit 08c6e0aee27fb07bdd52eccfaa6ba04b6f2133fa
2 changes: 1 addition & 1 deletion docarray/base_doc/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def _exclude_doclist(
from docarray.array.any_array import AnyDocArray

type_ = self._get_field_annotation(field)
if isinstance(type_, type) and issubclass(type_, AnyDocArray):
if isinstance(type_, type) and safe_issubclass(type_, AnyDocArray):
doclist_exclude_fields.append(field)

original_exclude = exclude
Expand Down