From 58a7351a73ac81365a64c295429e9bc0cb5c330b Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Thu, 13 Mar 2025 19:40:18 -0700 Subject: [PATCH] fix: fix linting errors --- litellm/proxy/guardrails/guardrail_hooks/aim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/guardrails/guardrail_hooks/aim.py b/litellm/proxy/guardrails/guardrail_hooks/aim.py index 9b0cd5f3cce..e1298b6301f 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/aim.py +++ b/litellm/proxy/guardrails/guardrail_hooks/aim.py @@ -121,7 +121,7 @@ class AimGuardrail(CustomGuardrail): async def call_aim_guardrail_on_output( self, request_data: dict, output: str, hook: str - ) -> None: + ) -> Optional[str]: user_email = ( request_data.get("metadata", {}).get("headers", {}).get("x-aim-user-email") )