Commit Graph

32 Commits

Author SHA1 Message Date
Danny Yang
7786587c88 Fix type annotations for google-cloud-ndb (#12943) 2024-11-01 21:43:18 -07:00
Max Muoto
37807d753a Use Generator instead of Iterator for 3rd-party context managers (#12481) 2024-08-12 14:26:18 +02:00
sobolevn
6f248dfa37 Bump mypy to 1.11.1 (#12463) 2024-08-04 23:19:28 -07:00
Alex Waygood
3802899a01 Bump google-cloud-ndb to 2.3.* (#11566) 2024-03-11 00:22:14 +01:00
Alex Waygood
c49c84f319 A new shade of Black (#11362) 2024-02-04 16:38:55 -08:00
Sebastian Rittau
b6eaadcfe5 Update typing_extensions imports in third-party stubs (#11245) 2024-01-05 15:40:13 +01:00
Alex Waygood
66771da404 Always install six when stubtesting types-google-cloud-ndb (#10704)
Fixes #10703
2023-09-12 15:00:44 +01:00
Nikita Sobolev
54201d5572 Bump google-cloud-ndb to 2.2.* (#10521)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-07-31 09:04:36 +01:00
Sebastian Rittau
afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00
Avasam
db0149859c Add partial_stub metadata field (#10157) 2023-05-10 17:04:18 +02:00
Alex Waygood
755e2bda7e google-cloud-ndb, paramiko, setuptools: remove unnecessary = ...s (#10011) 2023-04-04 13:40:16 +01:00
Avasam
078c6a0958 Update Unused parameters in stubs/ (#9704)
* Update _Unused TypeAlias

* Update `object | None` params

* Replace unused `object` parameters with `Unused` alias
2023-02-21 23:52:52 -08:00
Avasam
5ac80781ec Integrate requirements-stubtest.txt into METADATA.toml (#9778) 2023-02-21 11:19:50 +01:00
Avasam
ed6748fb32 Stubtest settings: change ignore_missing_stub default to false (#9779)
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.
2023-02-20 22:37:45 +00:00
Alex Waygood
7180d0223b Use typing_extensions.Self instead of _typeshed.Self (#9702) 2023-02-15 11:32:43 +01:00
Alex Waygood
4fea314594 Replace Any with Incomplete in many places (#9558) 2023-01-18 08:48:16 +00:00
github-actions[bot]
8ef547417f Bump google-cloud-ndb to 2.1.* (#9370) 2022-12-19 12:25:24 +01:00
github-actions[bot]
0eecaf4716 [stubsabot] Make google-cloud-ndb a namespace package; bump pinned version to 2.0.* (#9339)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-12-07 10:16:16 +00:00
github-actions[bot]
be4bfd660e [stubsabot] Bump google-cloud-ndb to 1.12.* (#9307)
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 <>
2022-12-01 00:25:56 +00:00
Nikita Sobolev
18e2ae762b Mark first argument of __[get|set|del]attr__ as str (#9245) 2022-11-22 11:06:50 +00:00
Nikita Sobolev
62a6c3d616 Annotate known magic-method return types (#9131) 2022-11-08 18:28:42 +00:00
Shantanu
95444479ac google-cloud-ndb: drop dependency on types-six (#8793)
For https://github.com/typeshed-internal/stub_uploader/pull/61#discussion_r979327370
2022-09-26 22:56:42 -07:00
dependabot[bot]
c1692130fd google-cloud-ndb: bump stubtest protobuf requirement (#8786)
Bumps [protobuf](https://github.com/protocolbuffers/protobuf) from 3.20.1 to 3.20.2.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.20.1...v3.20.2)

---
updated-dependencies:
- dependency-name: protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-23 22:49:28 +01:00
Alex Waygood
fa636bc044 Third-party stubs: fix several fictitious type aliases (#7958) 2022-05-26 06:26:26 -07:00
Alex Waygood
653f2c6ba4 Third-party stubs: import from collections.abc where possible (#7637) 2022-04-16 14:52:57 +01:00
Alex Waygood
740193a8fc Use TypeAlias where possible for type aliases (#7630) 2022-04-15 18:01:00 -07:00
Sebastian Rittau
3941e959ca Update google-cloud-ndb stubs to 1.11 (#7593) 2022-04-05 06:58:02 -07:00
Roman Joost
2381066c15 google-cloud-ndb: Fix incorrect type definition for validator (#7116)
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
2022-02-08 07:09:04 -08:00
Roman Joost
fc60d02c3e Fix mistyped get_by_id class methods (#7120)
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
2022-02-02 15:59:02 -08:00
Alex Waygood
b4e97a1909 Improve __enter__ & constructor methods (#7114) 2022-02-02 22:14:59 +01:00
Alex Waygood
a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Roman Joost
3a70f34ddd Stubs for google.cloud.ndb the Google Cloud Datastore ndb client library (#5821) 2021-10-21 07:15:53 +02:00