Skip to content

Commit

Permalink
v0.0.6
Browse files Browse the repository at this point in the history
Signed-off-by: ChengZi <[email protected]>
  • Loading branch information
zc277584121 committed May 10, 2024
1 parent 300aca3 commit 68597d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/milvus_haystack/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-present Tuana Celik <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
__version__ = "0.0.5"
__version__ = "0.0.6"
4 changes: 2 additions & 2 deletions src/milvus_haystack/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
)


Expand All @@ -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

0 comments on commit 68597d1

Please sign in to comment.