From 069c79d21d0b730d8944a6264ffcda6871ccf7be Mon Sep 17 00:00:00 2001 From: Marton Schneider Date: Sun, 21 Jun 2026 15:23:28 +0200 Subject: [PATCH] fix(guardrails): use builtin type[] in get_config_model return Avoids a new UP006 violation that tripped the ruff strict-rule budget gate on the PR lint job. --- .../generic_guardrail_api/generic_guardrail_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/generic_guardrail_api.py b/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/generic_guardrail_api.py index 81879a6fe6f..b1799b945aa 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/generic_guardrail_api.py +++ b/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/generic_guardrail_api.py @@ -7,7 +7,7 @@ import fnmatch import os -from typing import TYPE_CHECKING, Any, Dict, Literal, Optional, Set, Type +from typing import TYPE_CHECKING, Any, Dict, Literal, Optional, Set import httpx @@ -527,7 +527,7 @@ class GenericGuardrailAPI(CustomGuardrail): ) @staticmethod - def get_config_model() -> Optional[Type["GuardrailConfigModel"]]: + def get_config_model() -> Optional[type["GuardrailConfigModel"]]: from litellm.types.proxy.guardrails.guardrail_hooks.generic_guardrail_api import ( GenericGuardrailAPIConfigModel, )