cleaned code

This commit is contained in:
Yannick Stephan
2025-02-15 22:37:32 +01:00
parent eaf1d553d2
commit 3319db0dba
3 changed files with 4 additions and 9 deletions

View File

@@ -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."""

View File

@@ -1,4 +1,3 @@
from __future__ import annotations from __future__ import annotations
from pydantic import BaseModel from pydantic import BaseModel