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
Prev Previous commit
Merge branch 'main' into fix-is-subclass
Signed-off-by: Joan Fontanals Martinez <[email protected]>
  • Loading branch information
Joan Fontanals committed Jul 10, 2023
commit cfac5f197104c1f457c32da76dd94396a35f4b62
4 changes: 2 additions & 2 deletions docarray/index/backends/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _create_index(self) -> None:
if not self._check_index_exists(self.index_name):
schema = []
for column, info in self._column_infos.items():
if issubclass(info.docarray_type, AnyDocArray):
if safe_issubclass(info.docarray_type, AnyDocArray):
continue
elif info.db_type == VectorField:
space = info.config.get('space') or info.config.get('distance')
Expand Down Expand Up @@ -286,7 +286,7 @@ def python_type_to_db_type(self, python_type: Type) -> Any:
}

for py_type, redis_type in type_map.items():
if issubclass(python_type, py_type):
if safe_issubclass(python_type, py_type):
return redis_type
raise ValueError(f'Unsupported column type for {type(self)}: {python_type}')

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.