mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
fix(types): keep default access_group_ids as Sequence for the type discipline gate
This commit is contained in:
parent
929b8097a7
commit
a4eebf436b
2 changed files with 3 additions and 2 deletions
|
|
@ -1170,7 +1170,7 @@ async def update_internal_user_settings(
|
|||
)
|
||||
|
||||
|
||||
async def _validate_default_access_groups_exist(access_group_ids: list[str]) -> None:
|
||||
async def _validate_default_access_groups_exist(access_group_ids: Sequence[str]) -> None:
|
||||
"""Reject default access groups that cannot be attached.
|
||||
|
||||
Teams are created from these settings long after they are saved, and /team/new does
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
from collections.abc import Sequence
|
||||
from typing import Literal
|
||||
|
||||
from pydantic import Field
|
||||
|
|
@ -234,7 +235,7 @@ class DefaultTeamSSOParams(LiteLLMPydanticObjectBase):
|
|||
default=None,
|
||||
description="Default organization for new teams created without an explicit organization",
|
||||
)
|
||||
access_group_ids: list[str] | None = Field(
|
||||
access_group_ids: Sequence[str] | None = Field(
|
||||
default=None,
|
||||
description="Default access groups attached to new teams created without explicit access_group_ids",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue