From 68597d1bf3613abc1abaaf163b9037346c85725b Mon Sep 17 00:00:00 2001 From: ChengZi Date: Fri, 10 May 2024 16:14:10 +0800 Subject: [PATCH] v0.0.6 Signed-off-by: ChengZi --- src/milvus_haystack/__about__.py | 2 +- src/milvus_haystack/filters.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/milvus_haystack/__about__.py b/src/milvus_haystack/__about__.py index cbd11ba..c4f3fd4 100644 --- a/src/milvus_haystack/__about__.py +++ b/src/milvus_haystack/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2023-present Tuana Celik # # SPDX-License-Identifier: Apache-2.0 -__version__ = "0.0.5" +__version__ = "0.0.6" diff --git a/src/milvus_haystack/filters.py b/src/milvus_haystack/filters.py index 5f527d9..21ffa94 100644 --- a/src/milvus_haystack/filters.py +++ b/src/milvus_haystack/filters.py @@ -60,7 +60,7 @@ def _assert_comparison_filter(filters: Dict[str, Any]): assert "field" in filters, "field must be specified in filters" # noqa: S101 assert "value" in filters, "value must be specified in filters" # noqa: S101 assert filters["operator"] in COMPARISON_OPERATORS, FilterError( # noqa: S101 - "operator must be one of: %s" % LOGIC_OPERATORS + f"operator must be one of: {LOGIC_OPERATORS}" ) @@ -85,5 +85,5 @@ def _parse_logic(filters: Dict[str, Any]) -> str: def _assert_logic_filter(filters: Dict[str, Any]): assert "operator" in filters, "operator must be specified in filters" # noqa: S101 assert "conditions" in filters, "conditions must be specified in filters" # noqa: S101 - assert filters["operator"] in LOGIC_OPERATORS, "operator must be one of: %s" % LOGIC_OPERATORS # noqa: S101 + assert filters["operator"] in LOGIC_OPERATORS, f"operator must be one of: {LOGIC_OPERATORS}" # noqa: S101 assert isinstance(filters["conditions"], list), "conditions must be a list" # noqa: S101