Commit Graph

13 Commits

Author SHA1 Message Date
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