From 2d6cdd7bc8463f5772c318f67ad9903f6a7da9d4 Mon Sep 17 00:00:00 2001 From: AnneY Date: Tue, 22 Nov 2022 20:21:28 +0800 Subject: [PATCH] fix: change annlite extend to _extend Signed-off-by: AnneY --- docarray/array/storage/annlite/seqlike.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docarray/array/storage/annlite/seqlike.py b/docarray/array/storage/annlite/seqlike.py index a5163b63343..93628ab3cbd 100644 --- a/docarray/array/storage/annlite/seqlike.py +++ b/docarray/array/storage/annlite/seqlike.py @@ -8,7 +8,7 @@ class SequenceLikeMixin(BaseSequenceLikeMixin): """Implement sequence-like methods""" - def extend(self, values: Iterable['Document']) -> None: + def _extend(self, values: Iterable['Document']) -> None: docs = DocumentArrayInMemory(values) if len(docs) == 0: return @@ -19,9 +19,7 @@ def extend(self, values: Iterable['Document']) -> None: self._annlite.index(docs) self._offset2ids.extend([doc.id for doc in docs]) - self._update_subindices_append_extend(docs) - - def append(self, value: 'Document'): + def _append(self, value: 'Document'): self.extend([value]) def __eq__(self, other):