style(guardrails): ruff format the privaite hook

This commit is contained in:
crp4222 2026-07-03 20:43:44 +01:00
parent 73479ac257
commit b27457862f

View file

@ -287,12 +287,7 @@ class PrivaiteGuardrail(CustomGuardrail):
raise HTTPException(status_code=400, detail={"error": str(exc)}) from exc
if (
mapping is not None
and self.deanonymize
and not mapping.is_empty
and not data.get("background")
):
if mapping is not None and self.deanonymize and not mapping.is_empty and not data.get("background"):
# Carry a plain fake->original dict to the post-call hook on the same
# request, the same channel LiteLLM's Presidio guardrail uses. The
# post-call hook pops it again so it does not linger in metadata.