Skip to content

[google-cloud-ndb] Add Context.call_on_transaction_complete - #16569

Merged
srittau merged 1 commit into
python:mainfrom
Blacksujit:ndb-call-on-transaction-complete
Oct 20, 2026
Merged

srittau merged 1 commit into
python:mainfrom
Blacksujit:ndb-call-on-transaction-complete

Conversation

@Blacksujit

Copy link
Copy Markdown
Contributor

Context.call_on_transaction_complete is a public method (the counterpart of call_on_commit that also runs on rollback), but it was missing from the stub.

The callback is called with no arguments and its return value is ignored.

Upstream (v2.4.0, unchanged in 2.4.2): https://github.com/googleapis/python-ndb/blob/v2.4.0/google/cloud/ndb/context.py#L596-L617

AI agent used: Claude Code (claude-opus-5-5).

@github-actions

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

scipy-stubs (https://github.com/scipy/scipy-stubs)
- tests/misc/test_submodules_empty.pyi:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

@srittau
srittau merged commit 25f3803 into python:main Oct 20, 2026
74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants