mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-18 09:45:23 +00:00
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:
parent
29c487d63d
commit
ee707d3565
1 changed files with 2 additions and 2 deletions
|
|
@ -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 []
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue