We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a316b6f commit 51c6e18Copy full SHA for 51c6e18
packages/google-cloud-ndb/google/cloud/ndb/context.py
@@ -319,6 +319,9 @@ def __new__(
319
legacy_data=legacy_data,
320
)
321
322
+ # 'context' is dynamically composed at runtime and may include methods
323
+ # from multiple sources that Mypy cannot statically resolve here.
324
+ # We cast to `Any` to access the extended policy interface.
325
ctx = cast(Any, context)
326
ctx.set_cache_policy(cache_policy)
327
ctx.set_global_cache_policy(global_cache_policy)
0 commit comments