mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 08:04:24 +08:00
Bump google-cloud-ndb to 2.2.* (#10521)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
version = "2.1.*"
|
||||
version = "2.2.*"
|
||||
upstream_repository = "https://github.com/googleapis/python-ndb"
|
||||
partial_stub = true
|
||||
|
||||
|
||||
@@ -14,12 +14,14 @@ class Client:
|
||||
client_info: Incomplete
|
||||
secure: bool
|
||||
stub: Incomplete
|
||||
database: str | None
|
||||
def __init__(
|
||||
self,
|
||||
project: str | None = ...,
|
||||
namespace: str | None = ...,
|
||||
credentials: Incomplete | None = ...,
|
||||
client_options: Incomplete | None = ...,
|
||||
database: str | None = None,
|
||||
) -> None: ...
|
||||
@contextmanager
|
||||
def context(
|
||||
|
||||
@@ -18,6 +18,7 @@ class Key:
|
||||
def namespace(self): ...
|
||||
def project(self): ...
|
||||
app: Any
|
||||
def database(self) -> str | None: ...
|
||||
def id(self): ...
|
||||
def string_id(self): ...
|
||||
def integer_id(self): ...
|
||||
|
||||
@@ -320,6 +320,7 @@ class Model(_NotEqualMixin, metaclass=MetaModel):
|
||||
max_memcache_items: int | None = ...,
|
||||
force_writes: bool | None = ...,
|
||||
_options=...,
|
||||
database: str | None = None,
|
||||
) -> Model | None: ...
|
||||
@classmethod
|
||||
def get_by_id_async(
|
||||
@@ -344,6 +345,7 @@ class Model(_NotEqualMixin, metaclass=MetaModel):
|
||||
max_memcache_items: int | None = ...,
|
||||
force_writes: bool | None = ...,
|
||||
_options=...,
|
||||
database: str | None = None,
|
||||
) -> tasklets_module.Future: ...
|
||||
@classmethod
|
||||
def get_or_insert(
|
||||
|
||||
@@ -91,6 +91,7 @@ OR = DisjunctionNode
|
||||
class QueryOptions(_options.ReadOptions):
|
||||
project: Any
|
||||
namespace: Any
|
||||
database: str | None
|
||||
def __init__(self, config: Incomplete | None = ..., context: Incomplete | None = ..., **kwargs) -> None: ...
|
||||
|
||||
class Query:
|
||||
@@ -106,6 +107,7 @@ class Query:
|
||||
keys_only: Any
|
||||
projection: Any
|
||||
distinct_on: Any
|
||||
database: str | None
|
||||
def __init__(
|
||||
self,
|
||||
kind: Incomplete | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user