From dee71bc26f10e1ca1b1a839b9797f7050678a8c4 Mon Sep 17 00:00:00 2001 From: NamCaoHai Date: Thu, 7 Nov 2024 09:12:17 +0000 Subject: [PATCH] refactor code Signed-off-by: NamCaoHai --- pymilvus/exceptions.py | 2 +- pymilvus/orm/collection.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pymilvus/exceptions.py b/pymilvus/exceptions.py index ac8ef4717..467af5e3e 100644 --- a/pymilvus/exceptions.py +++ b/pymilvus/exceptions.py @@ -258,4 +258,4 @@ class ExceptionsMessage: "Default value cannot be None for a field that is defined as nullable == false." ) InvalidVectorFields = "%s is not a valid vector field; expected %s" - InvalidNormalizationParam = "Unexpected normalization_fields parameters. Expected 'all' or a list of fields (e.g., [field1, field2, ...]), but got %s." \ No newline at end of file + InvalidNormalizationParam = "Unexpected normalization_fields parameters. Expected 'all' or a list of fields (e.g., [field1, field2, ...]), but got %s." diff --git a/pymilvus/orm/collection.py b/pymilvus/orm/collection.py index 7252fcd0b..50ec3bb3e 100644 --- a/pymilvus/orm/collection.py +++ b/pymilvus/orm/collection.py @@ -1623,4 +1623,4 @@ def get_replicas(self, timeout: Optional[float] = None, **kwargs) -> Replica: def describe(self, timeout: Optional[float] = None): conn = self._get_connection() - return conn.describe_collection(self.name, timeout=timeout) \ No newline at end of file + return conn.describe_collection(self.name, timeout=timeout)