8000 Spanner: Fix `run_in_transaction` return value docs by wchargin · Pull Request #9264 · googleapis/google-cloud-python · GitHub
[go: up one dir, main page]

Skip to content

Spanner: Fix run_in_transaction return value docs #9264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions spanner/google/cloud/spanner_v1/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,11 @@ def run_in_transaction(self, func, *args, **kw):
If passed, "timeout_secs" will be removed and used to
override the default timeout.

:rtype: :class:`datetime.datetime`
:returns: timestamp of committed transaction
:rtype: Any
:returns: The return value of ``func``.

:raises Exception:
reraises any non-ABORT execptions raised by ``func``.
"""
# Sanity check: Is there a transaction already running?
# If there is, then raise a red flag. Otherwise, mark that this one
Expand Down
0