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.
This commit is contained in:
Marton Schneider 2026-06-21 15:23:28 +02:00
parent 53138180a9
commit 069c79d21d

View file

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