Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0079448

Browse filesBrowse files
committed
fix: mypy issues
Signed-off-by: maxwelljin2 <gejin@berkeley.edu>
1 parent a6fdd80 commit 0079448
Copy full SHA for 0079448

1 file changed

+2Lines changed: 2 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docarray/index/abstract.py‎

Copy file name to clipboardExpand all lines: docarray/index/abstract.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,7 @@ def _get_root_doc_id(self, id: str, root: str, sub: str) -> str:
11671167
)
11681168
return self._get_root_doc_id(cur_root_id, root, '')
11691169

1170+
@abstractmethod
11701171
def __contains__(self, item: BaseDoc) -> bool:
11711172
"""Checks if a given BaseDoc item is contained in the index.
11721173
@@ -1175,6 +1176,7 @@ def __contains__(self, item: BaseDoc) -> bool:
11751176
"""
11761177
...
11771178

1179+
@abstractmethod
11781180
def _get_all_documents(self) -> Union[AnyDocArray, List]:
11791181
"""Retrieve all documents from the index
11801182

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.