diff --git a/stubs/google-cloud-ndb/google/cloud/ndb/global_cache.pyi b/stubs/google-cloud-ndb/google/cloud/ndb/global_cache.pyi index 4811b9c67c01..fef8dc4445c2 100644 --- a/stubs/google-cloud-ndb/google/cloud/ndb/global_cache.pyi +++ b/stubs/google-cloud-ndb/google/cloud/ndb/global_cache.pyi @@ -41,7 +41,7 @@ class _InProcessGlobalCache(GlobalCache): class RedisCache(GlobalCache): transient_errors: Incomplete @classmethod - def from_environment(cls, strict_read: bool = False, strict_write: bool = True) -> Self: ... + def from_environment(cls, strict_read: bool = False, strict_write: bool = True) -> Self | None: ... redis: Incomplete strict_read: Incomplete strict_write: Incomplete @@ -65,7 +65,7 @@ class MemcacheCache(GlobalCache): transient_errors: Incomplete @classmethod - def from_environment(cls, max_pool_size: int = 4, strict_read: bool = False, strict_write: bool = True) -> Self: ... + def from_environment(cls, max_pool_size: int = 4, strict_read: bool = False, strict_write: bool = True) -> Self | None: ... client: Incomplete strict_read: Incomplete strict_write: Incomplete