Fix dict[str, Any] -> Dict[str, Any] for Python 3.8 compat

This commit is contained in:
Abhijoy Sarkar 2026-03-21 11:12:20 +05:30
parent 8afe3ec8f2
commit 196039247b

View file

@ -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,
}