From e48036b95571b8f3497f5a89fb9722b1c67cfba0 Mon Sep 17 00:00:00 2001 From: ArnabDutta01 Date: Thu, 19 Nov 2026 15:59:23 +0530 Subject: [PATCH] [google-cloud-ndb] from_environment() can return None --- stubs/google-cloud-ndb/google/cloud/ndb/global_cache.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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