mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix(guardrails): use builtin frozenset generic for TEXT_PART_TYPES annotation
Frozenset is not a defined name (typing exports FrozenSet, the builtin is frozenset), so module import raised NameError and broke every proxy test suite. The builtin generic is valid on the supported python floor (3.10) and keeps the UP006 ruff-strict budget at its ceiling, which the typing alias would exceed
This commit is contained in:
parent
50f191324d
commit
2bb3f604a7
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ def is_text_content_call_type(call_type: str) -> bool:
|
|||
return call_type in TEXT_CONTENT_CALL_TYPES
|
||||
|
||||
|
||||
TEXT_PART_TYPES: Frozenset[str] = frozenset({"text", "input_text", "output_text", "summary_text"})
|
||||
TEXT_PART_TYPES: frozenset[str] = frozenset({"text", "input_text", "output_text", "summary_text"})
|
||||
|
||||
|
||||
def _iter_summary_texts(summary: Any) -> Iterator[str]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue