Skip to content

Commit

Permalink
fix: fix local collection upsert type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
joein committed Aug 8, 2024
1 parent b595c98 commit 8fd37e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qdrant_client/local/local_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1866,7 +1866,7 @@ def _upsert_point(self, point: models.PointStruct) -> None:
if self.storage is not None:
self.storage.persist(point)

def upsert(self, points: Union[List[models.PointStruct], models.Batch]) -> None:
def upsert(self, points: Union[Sequence[models.PointStruct], models.Batch]) -> None:
if isinstance(points, list):
for point in points:
self._upsert_point(point)
Expand Down

0 comments on commit 8fd37e0

Please sign in to comment.