From 58bc710c43c854862ac1a11c84be1a00b4aec85c Mon Sep 17 00:00:00 2001 From: hajdul88 <52442977+hajdul88@users.noreply.github.com> Date: Thu, 19 Jun 2025 14:46:48 +0200 Subject: [PATCH] Fix: fixes ruff --- .../databases/graph/memgraph/memgraph_adapter.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cognee/infrastructure/databases/graph/memgraph/memgraph_adapter.py b/cognee/infrastructure/databases/graph/memgraph/memgraph_adapter.py index bd27d0cf8..8fbe13f72 100644 --- a/cognee/infrastructure/databases/graph/memgraph/memgraph_adapter.py +++ b/cognee/infrastructure/databases/graph/memgraph/memgraph_adapter.py @@ -377,14 +377,11 @@ class MemgraphAdapter(GraphDBInterface): The result of the edge addition operation, including relationship details. """ - exists = await asyncio.gather( - self.has_node(str(from_node)), - self.has_node(str(to_node)) - ) + exists = await asyncio.gather(self.has_node(str(from_node)), self.has_node(str(to_node))) if not all(exists): return None - + serialized_properties = self.serialize_properties(edge_properties or {}) query = dedent(