Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

Commit 0e13010

Browse files
author
Joan Fontanals
authored
fix: fix call to unsafe issubclass (#1731)
1 parent 3be6f2b commit 0e13010

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docarray/index/abstract.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ def _validate_docs(
994994
# see schema translation ideas in the design doc
995995
names_compatible = reference_names == input_names
996996
types_compatible = all(
997-
(issubclass(t2, t1))
997+
(safe_issubclass(t2, t1))
998998
for (t1, t2) in zip(reference_types, input_types)
999999
)
10001000
if names_compatible and types_compatible:

0 commit comments

Comments
 (0)