Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ env/

# Version files generated by hatch-vcs
coordinode/_version.py
coordinode/coordinode/_version.py
langchain-coordinode/langchain_coordinode/_version.py
llama-index-coordinode/llama_index/graph_stores/coordinode/_version.py

# Local dev / arch docs — not part of the SDK
GAPS.md
CLAUDE.md
DEVLOG*.md

**/.ipynb_checkpoints/
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class LocalClient:
"""

def __init__(self, path: str) -> None: ...

def cypher(
self,
query: str,
Expand All @@ -48,6 +47,6 @@ class LocalClient:
"""
...

def __enter__(self) -> "LocalClient": ...
def __enter__(self) -> LocalClient: ...
def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> bool: ...
def __repr__(self) -> str: ...
2 changes: 1 addition & 1 deletion coordinode-rs
Submodule coordinode-rs updated 109 files
6 changes: 6 additions & 0 deletions coordinode/coordinode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@
CoordinodeClient,
EdgeResult,
EdgeTypeInfo,
HybridResult,
LabelInfo,
NodeResult,
PropertyDefinitionInfo,
TextIndexInfo,
TextResult,
TraverseResult,
VectorResult,
)
Expand All @@ -40,8 +43,11 @@
"NodeResult",
"EdgeResult",
"VectorResult",
"TextResult",
"HybridResult",
"LabelInfo",
"EdgeTypeInfo",
"PropertyDefinitionInfo",
"TextIndexInfo",
"TraverseResult",
]
6 changes: 4 additions & 2 deletions coordinode/coordinode/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ def to_property_value(py_val: PyValue) -> Any:
pv.string_value = py_val
elif isinstance(py_val, bytes):
pv.bytes_value = py_val
elif isinstance(py_val, (list, tuple)):
elif isinstance(py_val, list | tuple):
# Homogeneous float list → Vector; mixed/str list → PropertyList.
# bool is a subclass of int, so exclude it explicitly — [True, False] must
# not be serialised as a Vector of 1.0/0.0 but as a PropertyList.
if py_val and all(isinstance(v, (int, float)) and not isinstance(v, bool) for v in py_val):
# list | tuple union syntax is valid in isinstance() for Python ≥3.10 (PEP 604).
# This project targets Python ≥3.11 (pyproject.toml: requires-python = ">=3.11").
if py_val and all(isinstance(v, int | float) and not isinstance(v, bool) for v in py_val):
vec = Vector(values=[float(v) for v in py_val])
pv.vector_value.CopyFrom(vec)
else:
Expand Down
Loading
Loading