From 63e7568fd902857db21fff22028d8c063c092d75 Mon Sep 17 00:00:00 2001 From: Alvaro Alonso <112358.fn@gmail.com> Date: Thu, 22 Sep 2022 16:48:23 +0200 Subject: [PATCH] Fix docstring example: session.begin_transaction() needs to be awaited --- neo4j/_async/work/transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo4j/_async/work/transaction.py b/neo4j/_async/work/transaction.py index eee74c86c..687755397 100644 --- a/neo4j/_async/work/transaction.py +++ b/neo4j/_async/work/transaction.py @@ -256,7 +256,7 @@ class AsyncTransaction(AsyncTransactionBase): managers (:py:const:`async with` block) where the transaction is committed or rolled back on based on whether an exception is raised:: - async with session.begin_transaction() as tx: + async with await session.begin_transaction() as tx: ... """