mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
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:
parent
c5a5ea1efa
commit
f56386c547
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue