Skip to content
Open
Changes from all 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
10 changes: 10 additions & 0 deletions src/profiles/claude_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,16 @@ async def sgraph_cypher_query(input: CypherQueryInput):
return {"error": f"Model '{mid}' not found"}

try:
# NumPy 2.0 removed np.float_, which spycy <= 0.0.3 still
# references (toInteger/toFloat/toString crash without this).
# Same alias as np.float64 on NumPy 1.x, so a no-op there.
# Remove once sgraph ships its own shim (softagram/sgraph#191)
# or a spycy release containing aneeshdurg/spycy#3 is required.
import numpy as np

if not hasattr(np, "float_"):
np.float_ = np.float64 # type: ignore[attr-defined]

from sgraph.cypher import SGraphCypherBackend, SGraphCypherExecutor
import pandas as pd

Expand Down
Loading