From 85ad3498cd216c1bb8a8017195e2bb7e5417b3ef Mon Sep 17 00:00:00 2001 From: Bob Hogg Date: Fri, 4 Aug 2023 15:52:37 +0000 Subject: [PATCH] Mark database argument for get_by_id and its async counterpart as ignored The Client class should be used to set the database instead. --- google/cloud/ndb/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google/cloud/ndb/model.py b/google/cloud/ndb/model.py index b780f6a5..4a396acd 100644 --- a/google/cloud/ndb/model.py +++ b/google/cloud/ndb/model.py @@ -5764,8 +5764,7 @@ def _get_by_id( ``global_cache_timeout``. max_memcache_items (int): No longer supported. force_writes (bool): No longer supported. - database (Optional[str]): Database for the entity to load. If not - passed, uses the client's value. + database (Optional[str]): Ignored. Please set the database on the Client instead. Returns: Optional[Model]: The retrieved entity, if one is found. @@ -5851,6 +5850,7 @@ def _get_by_id_async( ``global_cache_timeout``. max_memcache_items (int): No longer supported. force_writes (bool): No longer supported. + database (Optional[str]): Ignored. Please set the database on the Client instead. Returns: tasklets.Future: Optional[Model]: The retrieved entity, if one is