From 6c5354efa58134f3b89e8b2596bde9daae223787 Mon Sep 17 00:00:00 2001 From: NamCaoHai Date: Thu, 7 Nov 2024 09:24:42 +0000 Subject: [PATCH] Revert "refactor code" This reverts commit 1e01b7292dc24193a0fb8d4720af4e3c308b6144. --- 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 467af5e3e..ac8ef4717 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." + 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 diff --git a/pymilvus/orm/collection.py b/pymilvus/orm/collection.py index 50ec3bb3e..7252fcd0b 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) + return conn.describe_collection(self.name, timeout=timeout) \ No newline at end of file