Skip to content

Commit 7190636

Browse files
112358fnrobsdedude
andauthored
Fix docstring example: session.begin_transaction() needs to be awaited (#807)
Co-authored-by: Robsdedude <rouven.bauer@neo4j.com>
1 parent 8229407 commit 7190636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo4j/_async/work/transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class AsyncTransaction(AsyncTransactionBase):
256256
managers (:py:const:`async with` block) where the transaction is committed
257257
or rolled back on based on whether an exception is raised::
258258
259-
async with session.begin_transaction() as tx:
259+
async with await session.begin_transaction() as tx:
260260
...
261261
262262
"""

0 commit comments

Comments
 (0)