Skip to content

Commit d51ddc5

Browse files
committed
fixed type error for all version
1 parent 44d33e3 commit d51ddc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

filexdb/collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,9 @@ def _doc_is_exists(self, doc_id: str) -> bool:
383383

384384
return False
385385

386-
def _find_document_by_id(self, doc_id) -> Document | str:
386+
def _find_document_by_id(self, doc_id) -> Document:
387387
for doc in self._collection:
388388
if doc["_id_"] == doc_id:
389389
return doc
390390
else:
391-
return "none"
391+
return None

0 commit comments

Comments
 (0)