Skip to content

Commit c799909

Browse files
committed
chore: make lint happy
Signed-off-by: Chojan Shang <[email protected]>
1 parent 1029499 commit c799909

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/nebulagraph_mcp_server/server.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ def get_path_resource(space: str, src: str, dst: str, depth: int, limit: int) ->
130130

131131
# Iterate through all paths
132132
for i in range(result.row_size()):
133-
path = result.row_values(i)[0] # The path should be in the first column
133+
path = result.row_values(i)[
134+
0
135+
] # The path should be in the first column
134136
output += f"Path {i + 1}:\n{path}\n\n"
135137

136138
return output
@@ -257,7 +259,9 @@ def get_neighbors_resource(space: str, vertex: str, depth: int) -> str:
257259
row = result.row_values(i)
258260
neighbor_vertex = row[0]
259261
edges = row[1]
260-
output += f"Neighbor Vertex:\n{neighbor_vertex}\nEdges:\n{edges}\n\n"
262+
output += (
263+
f"Neighbor Vertex:\n{neighbor_vertex}\nEdges:\n{edges}\n\n"
264+
)
261265
return output
262266
return f"No neighbors found for vertex {vertex}"
263267
else:

0 commit comments

Comments
 (0)