mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
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:
parent
53138180a9
commit
069c79d21d
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue