fix syntax and types

This commit is contained in:
2026-04-24 18:23:02 +02:00
parent 948f8500be
commit c5b6b196b5
8 changed files with 21 additions and 25 deletions
+1
View File
@@ -1,6 +1,7 @@
from __future__ import annotations
from rich import print
from chromy.chroma_functions import count_collection
+1
View File
@@ -1,6 +1,7 @@
from __future__ import annotations
from rich import print
from chromy.chroma_functions import create_collection
+3 -4
View File
@@ -1,6 +1,7 @@
from __future__ import annotations
from rich import print
from chromy.chroma_functions import delete_collection, delete_data
@@ -8,15 +9,13 @@ def _parse_where_clause(where_clause: str) -> dict[str, str]:
condition, separator, value = where_clause.partition("=")
if separator == "":
raise ValueError(
"Invalid --where value. Expected <condition>=<value>.")
raise ValueError("Invalid --where value. Expected <condition>=<value>.")
condition = condition.strip()
value = value.strip()
if not condition or not value:
raise ValueError(
"Invalid --where value. Expected <condition>=<value>.")
raise ValueError("Invalid --where value. Expected <condition>=<value>.")
return {condition: value}