Skip to content
Merged
Show file tree
Hide file tree
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
Next Next commit
fix: merge conflicts
Signed-off-by: jupyterjazz <[email protected]>
  • Loading branch information
jupyterjazz committed Jul 13, 2023
commit 2113cdd2d31a729d55c548db2362e3433b1453e9
4 changes: 4 additions & 0 deletions docarray/index/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from docarray.index.backends.qdrant import QdrantDocumentIndex # noqa: F401
from docarray.index.backends.weaviate import WeaviateDocumentIndex # noqa: F401
from docarray.index.backends.redis import RedisDocumentIndex # noqa: F401
from docarray.index.backends.milvus import MilvusDocumentIndex # noqa: F401

__all__ = ['InMemoryExactNNIndex']

Expand All @@ -38,6 +39,9 @@ def __getattr__(name: str):
elif name == 'MilvusDocumentIndex':
import_library('pymilvus', raise_error=True)
import docarray.index.backends.milvus as lib
elif name == 'RedisDocumentIndex':
import_library('redis', raise_error=True)
import docarray.index.backends.redis as lib
else:
raise ImportError(
f'cannot import name \'{name}\' from \'{_get_path_from_docarray_root_level(__file__)}\''
Expand Down
1 change: 0 additions & 1 deletion docarray/utils/_internal/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def safe_issubclass(x: type, a_tuple: type) -> bool:
or is_typevar(x)
or (type(x) == ForwardRef)
or is_typevar(x)
or x is ID
):
return False
return issubclass(x, a_tuple)
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.