Skip to content

Commit 4540b23

Browse files
wchargintseaver
authored andcommitted
docs: Fix run_in_transaction return value docs. (#9264)
1 parent e993961 commit 4540b23

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spanner/google/cloud/spanner_v1/database.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,11 @@ def run_in_transaction(self, func, *args, **kw):
420420
If passed, "timeout_secs" will be removed and used to
421421
override the default timeout.
422422
423-
:rtype: :class:`datetime.datetime`
424-
:returns: timestamp of committed transaction
423+
:rtype: Any
424+
:returns: The return value of ``func``.
425+
426+
:raises Exception:
427+
reraises any non-ABORT execptions raised by ``func``.
425428
"""
426429
# Sanity check: Is there a transaction already running?
427430
# If there is, then raise a red flag. Otherwise, mark that this one

0 commit comments

Comments
 (0)