From 3f68f7d4622ae02bd17c869972240139c9fb5b23 Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Fri, 10 Nov 2023 14:58:10 +0800 Subject: [PATCH] Refine highlevel delete code comments (#1778) Signed-off-by: zhenshan.cao --- pymilvus/milvus_client/milvus_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pymilvus/milvus_client/milvus_client.py b/pymilvus/milvus_client/milvus_client.py index a6aca5c97..6e0d02680 100644 --- a/pymilvus/milvus_client/milvus_client.py +++ b/pymilvus/milvus_client/milvus_client.py @@ -373,7 +373,7 @@ def delete( pks: Union[list, str, int], timeout: Optional[float] = None, **kwargs, - ) -> List[Union[str, int]]: + ): """Delete entries in the collection by their pk. Delete all the entries based on the pk. If unsure of pk you can first query the collection @@ -385,8 +385,8 @@ def delete( This change is due to the large amount of data involved. The delete interface no longer returns any results. If no exceptions are thrown, it indicates a successful deletion. - However, for backward compatibility, If the primary_keys returned from Milvus is not empty - the list of primary keys is still returned. + However, for backward compatibility, If the primary_keys returned from old + Milvus(previous 2.3.2) is not empty, the list of primary keys is still returned. Args: pks (list, str, int): The pk's to delete. Depending on pk_field type it can be int