typing: Simplify return type of RequestContext.to_policy_values

The specific type used here is irrelevant.

Change-Id: I9569a3769e901c75f05bbd272260620be5ed382c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-12-08 19:25:04 +00:00
parent 330aa59fac
commit 6ab056fd6c

View File

@@ -238,7 +238,7 @@ class RequestContext:
"""Store the context in the current thread."""
_request_store.context = self
def to_policy_values(self) -> _DeprecatedPolicyValues:
def to_policy_values(self) -> _MutableMapping:
"""A dictionary of context attributes to enforce policy with.
oslo.policy enforcement requires a dictionary of attributes