mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Bump google-cloud-ndb to 2.1.* (#9370)
This commit is contained in:
committed by
GitHub
parent
3abf38ee0b
commit
8ef547417f
@@ -1,2 +1 @@
|
||||
version = "2.0.*"
|
||||
requires = []
|
||||
version = "2.1.*"
|
||||
|
||||
@@ -1,21 +1,33 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Callable, Iterator
|
||||
from contextlib import contextmanager
|
||||
from typing import ClassVar
|
||||
|
||||
DATASTORE_API_HOST: Any
|
||||
from google.cloud.ndb import context as context_module, key
|
||||
|
||||
DATASTORE_API_HOST: str
|
||||
|
||||
class Client:
|
||||
SCOPE: Any
|
||||
namespace: Any
|
||||
host: Any
|
||||
client_info: Any
|
||||
secure: Any
|
||||
stub: Any
|
||||
def __init__(self, project: Any | None = ..., namespace: Any | None = ..., credentials: Any | None = ...) -> None: ...
|
||||
SCOPE: ClassVar[tuple[str, ...]]
|
||||
namespace: str | None
|
||||
host: str
|
||||
client_info: Incomplete
|
||||
secure: bool
|
||||
stub: Incomplete
|
||||
def __init__(
|
||||
self,
|
||||
project: str | None = ...,
|
||||
namespace: str | None = ...,
|
||||
credentials: Incomplete | None = ...,
|
||||
client_options: Incomplete | None = ...,
|
||||
) -> None: ...
|
||||
@contextmanager
|
||||
def context(
|
||||
self,
|
||||
namespace=...,
|
||||
cache_policy: Any | None = ...,
|
||||
global_cache: Any | None = ...,
|
||||
global_cache_policy: Any | None = ...,
|
||||
global_cache_timeout_policy: Any | None = ...,
|
||||
cache_policy: Callable[[key.Key], bool] | None = ...,
|
||||
global_cache: Incomplete | None = ...,
|
||||
global_cache_policy: Callable[[key.Key], bool] | None = ...,
|
||||
global_cache_timeout_policy: Callable[[key.Key], int] | None = ...,
|
||||
legacy_data: bool = ...,
|
||||
) -> None: ...
|
||||
) -> Iterator[context_module.Context]: ...
|
||||
|
||||
Reference in New Issue
Block a user