chore(keys): use Sequence in assignment guard model annotation

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
jesus 2026-10-15 00:18:17 +00:00
parent 29c487d63d
commit ee707d3565

View file

@ -2730,9 +2730,9 @@ async def _write_guarded_project_assignment(
existing_key_row: LiteLLM_VerificationToken,
data: Mapping[str, object],
) -> "_KeyRowDumpable | None":
validated_models: Final[list[str]] = (
validated_models: Final[Sequence[str]] = (
cast( # cast-ok: LiteLLM_VerificationToken.models is a bare list
"list[str] | None", existing_key_row.models
"Sequence[str] | None", existing_key_row.models
)
or []
)