If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
Release: https://pypi.org/pypi/google-cloud-ndb/1.12.0
Homepage: https://github.com/googleapis/python-ndb
Diff: https://github.com/googleapis/python-ndb/compare/v1.11.2...v1.12.0
Stubsabot analysis of the diff between the two releases:
- 1 public Python file has been added: `.kokoro/noxfile.py`.
- 0 files included in typeshed's stubs have been deleted.
- 6 files included in typeshed's stubs have been modified or renamed: `google/cloud/ndb/_datastore_api.py`, `google/cloud/ndb/context.py`, `google/cloud/ndb/django_middleware.py`, `google/cloud/ndb/model.py`, `google/cloud/ndb/msgprop.py`, `google/cloud/ndb/tasklets.py`.
- Total lines of Python code added: 377.
- Total lines of Python code deleted: 63.
If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR
Note that you will need to close and re-open the PR in order to trigger CI
Co-authored-by: stubsabot <>
This function was mistakenly typed as `Callable[[Property], object] |
None`, however the actual function accepts two parameters of type
`Property, value`. The value can be of any type. Strictly speaking, the
type corresponds to the type of the property which is defined at runtime.
Fixes#7103
The types for these class methods were mixed up. The async method
returned an optional `Model`, while the synchronous method returned a
`Future`. It's the other way around.
Fixes#7103