Skip to content

Commit 19dfd44

Browse files
committed
style(core): format slicing syntax consistently
1 parent ba0561b commit 19dfd44

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

flowllm/core/vector_store/chroma_vector_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _build_chroma_filters(
111111

112112
# Strip "metadata." prefix if present (ChromaDB stores metadata fields directly)
113113
if key.startswith("metadata."):
114-
chroma_key = key[len("metadata."):]
114+
chroma_key = key[len("metadata.") :]
115115
else:
116116
chroma_key = key
117117

tests/test_memory_vector_store.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ def test_search_with_filter(self, workspace_id: str):
296296
logger.info(f"Filtered search returned {len(results)} results (node_type in [tech, tech_new])")
297297
for i, r in enumerate(results, 1):
298298
logger.info(f"Filtered Result {i}: {r.model_dump(exclude={'vector'})}")
299-
assert r.metadata.get("node_type") in ["tech", "tech_new"], "All results should have node_type in [tech, tech_new]"
299+
assert r.metadata.get("node_type") in [
300+
"tech",
301+
"tech_new",
302+
], "All results should have node_type in [tech, tech_new]"
300303

301304
def test_search_with_id(self, workspace_id: str):
302305
"""Test vector search by unique_id with empty query."""
@@ -522,7 +525,10 @@ async def test_search_with_filter(self, workspace_id: str):
522525
logger.info(f"Filtered search returned {len(results)} results (node_type in [tech, tech_new])")
523526
for i, r in enumerate(results, 1):
524527
logger.info(f"Filtered Result {i}: {r.model_dump(exclude={'vector'})}")
525-
assert r.metadata.get("node_type") in ["tech", "tech_new"], "All results should have node_type in [tech, tech_new]"
528+
assert r.metadata.get("node_type") in [
529+
"tech",
530+
"tech_new",
531+
], "All results should have node_type in [tech, tech_new]"
526532

527533
async def test_search_with_id(self, workspace_id: str):
528534
"""Test async vector search by unique_id with empty query."""

0 commit comments

Comments
 (0)