fix(types): keep default access_group_ids as Sequence for the type discipline gate

This commit is contained in:
jesus 2026-11-03 18:14:36 +00:00
parent 929b8097a7
commit a4eebf436b
2 changed files with 3 additions and 2 deletions

View file

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

View file

@ -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",
)