fix(cache): use builtin dict annotation to satisfy UP006 budget gate

This commit is contained in:
Yuneng Jiang 2026-07-03 14:00:22 -07:00
parent b86c01c624
commit 0d31088724
No known key found for this signature in database

View file

@ -50,7 +50,7 @@ _REDACTED_VALUE = "***REDACTED***"
_URL_OVERRIDDEN_CONNECTION_FIELDS: frozenset = frozenset({"host", "port", "db", "password", "username"})
def _resolve_cache_url_precedence(settings: Mapping[str, Any]) -> Dict[str, Any]:
def _resolve_cache_url_precedence(settings: Mapping[str, Any]) -> dict[str, Any]:
"""Return cache settings with the url-vs-discrete-fields ambiguity resolved.
When a full ``url`` is supplied it wins: the discrete