cleaned code
This commit is contained in:
@@ -163,17 +163,13 @@ class BaseGraphStorage(StorageNameSpace):
|
|||||||
"""Get an edge by its source and target node ids."""
|
"""Get an edge by its source and target node ids."""
|
||||||
|
|
||||||
async def get_edge(
|
async def get_edge(
|
||||||
self,
|
self, source_node_id: str, target_node_id: str
|
||||||
source_node_id: str,
|
|
||||||
target_node_id: str
|
|
||||||
) -> dict[str, str] | None:
|
) -> dict[str, str] | None:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
"""Get all edges connected to a node."""
|
"""Get all edges connected to a node."""
|
||||||
|
|
||||||
async def get_node_edges(
|
async def get_node_edges(self, source_node_id: str) -> list[tuple[str, str]] | None:
|
||||||
self, source_node_id: str
|
|
||||||
) -> list[tuple[str, str]] | None:
|
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
"""Upsert a node into the graph."""
|
"""Upsert a node into the graph."""
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
Reference in New Issue
Block a user