Fix: fixes ruff

This commit is contained in:
hajdul88 2025-06-19 14:46:48 +02:00
parent 2d0f3e7f1f
commit 58bc710c43

View file

@ -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(