Skip to content

Commit

Permalink
updated example generation code
Browse files Browse the repository at this point in the history
  • Loading branch information
gurmukhnishansingh-quilr committed Feb 22, 2025
1 parent cc71ec9 commit 8dfec4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/neo4j/langchain_neo4j/graphs/neo4j_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _format_schema(schema: Dict, is_enhanced: bool) -> str:
example = f'Min: {prop["min"]}, Max: {prop["max"]}'
else: # return a single value
example = (
f'Example: "{prop["values"][0]}"' if prop["values"] else ""
f'Example: "{prop["values"][0]}"' if "values" in prop else ""

Check failure on line 245 in libs/neo4j/langchain_neo4j/graphs/neo4j_graph.py

View workflow job for this annotation

GitHub Actions / cd libs/neo4j / make lint #3.12

Ruff (E501)

langchain_neo4j/graphs/neo4j_graph.py:245:89: E501 Line too long (89 > 88)
)
elif prop["type"] == "LIST":
# Skip embeddings
Expand Down

0 comments on commit 8dfec4b

Please sign in to comment.