Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/google-cloud-ndb/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "2.4.*"
version = "2.5.*"
upstream-repository = "https://github.com/googleapis/python-ndb"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repository moved to google-cloud-python

Suggested change
upstream-repository = "https://github.com/googleapis/python-ndb"
upstream-repository = "https://github.com/googleapis/google-cloud-python"

partial-stub = true

Expand Down
16 changes: 8 additions & 8 deletions stubs/google-cloud-ndb/google/cloud/ndb/_cache.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class _GlobalCacheBatch:
def idle_callback(self) -> None: ...
def done_callback(self, cache_call) -> None: ...
def make_call(self) -> None: ...
def future_info(self, key) -> None: ...
def future_info(self, key, value=None) -> None: ...

global_get: Incomplete

Expand All @@ -21,7 +21,7 @@ class _GlobalCacheGetBatch(_GlobalCacheBatch):
def add(self, key): ...
def done_callback(self, cache_call) -> None: ...
def make_call(self): ...
def future_info(self, key): ...
def future_info(self, key, value=None): ...

def global_set(key, value, expires: Incomplete | None = ..., read: bool = ...): ...

Expand All @@ -33,12 +33,12 @@ class _GlobalCacheSetBatch(_GlobalCacheBatch):
def done_callback(self, cache_call) -> None: ...
def add(self, key, value): ...
def make_call(self): ...
def future_info(self, key, value): ... # type: ignore[override]
def future_info(self, key, value=None): ...

class _GlobalCacheSetIfNotExistsBatch(_GlobalCacheSetBatch):
def add(self, key, value): ...
def make_call(self): ...
def future_info(self, key, value): ... # type: ignore[override]
def future_info(self, key, value=None): ...

global_delete: Incomplete

Expand All @@ -48,25 +48,25 @@ class _GlobalCacheDeleteBatch(_GlobalCacheBatch):
def __init__(self, ignore_options) -> None: ...
def add(self, key): ...
def make_call(self): ...
def future_info(self, key): ...
def future_info(self, key, value=None): ...

global_watch: Incomplete

class _GlobalCacheWatchBatch(_GlobalCacheDeleteBatch):
def make_call(self): ...
def future_info(self, key, value): ... # type: ignore[override]
def future_info(self, key, value=None): ...

def global_unwatch(key): ...

class _GlobalCacheUnwatchBatch(_GlobalCacheDeleteBatch):
def make_call(self): ...
def future_info(self, key): ...
def future_info(self, key, value=None): ...

global_compare_and_swap: Incomplete

class _GlobalCacheCompareAndSwapBatch(_GlobalCacheSetBatch):
def make_call(self): ...
def future_info(self, key, value): ... # type: ignore[override]
def future_info(self, key, value=None): ...

def is_locked_value(value): ...
def global_cache_key(key): ...
4 changes: 3 additions & 1 deletion stubs/google-cloud-ndb/google/cloud/ndb/model.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ class TimeProperty(DateTimeProperty): ...
class StructuredProperty(Property):
def __init__(self, model_class: type, name: str | None = ..., **kwargs) -> None: ...
def __getattr__(self, attrname: str): ...
def IN(self, value: Iterable[object]) -> query_module.DisjunctionNode | query_module.FalseNode: ... # type: ignore[override]
def IN(
self, value: Iterable[object], server_op: bool | None = None
) -> query_module.DisjunctionNode | query_module.FalseNode: ...

class LocalStructuredProperty(BlobProperty):
def __init__(self, model_class: type[Model], **kwargs) -> None: ...
Expand Down