From 196039247ba09f5bc35499df5c57bb41f55ab4bf Mon Sep 17 00:00:00 2001 From: Abhijoy Sarkar Date: Sat, 21 Mar 2026 11:12:20 +0530 Subject: [PATCH] Fix dict[str, Any] -> Dict[str, Any] for Python 3.8 compat --- .../guardrails/guardrail_hooks/promptguard/promptguard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py b/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py index 4b9152bd719..c136b05c5f3 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py +++ b/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py @@ -10,6 +10,7 @@ import os from typing import ( TYPE_CHECKING, Any, + Dict, List, Literal, Optional, @@ -120,7 +121,7 @@ class PromptGuardGuardrail(CustomGuardrail): direction = "input" if input_type == "request" else "output" - payload: dict[str, Any] = { + payload: Dict[str, Any] = { "messages": messages, "direction": direction, }