style(guardrails): use dict | None over Optional[dict] to satisfy UP045 budget

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Krrish Dholakia 2026-07-18 03:41:14 +00:00
parent c5a5ea1efa
commit f56386c547

View file

@ -105,7 +105,7 @@ def _guardrail_log_containers(request_data: dict) -> tuple:
(deduplicated by identity) rather than only the client one.
"""
def _ensure_dict(key: str) -> Optional[dict]:
def _ensure_dict(key: str) -> "dict | None":
if key not in request_data:
return None
if request_data[key] is None: