Commit Graph

9 Commits

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