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:
Yucheng Zhu 2026-07-11 17:55:27 -07:00
parent 50f191324d
commit 2bb3f604a7

View file

@ -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]: