mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-26 06:03:19 +00:00
style: annotate self-update gate params with read-only views (LIT001)
Generated-by: termag
This commit is contained in:
parent
6d9d6d9eb5
commit
90094d53c7
1 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ These are members of a Team on LiteLLM
|
|||
import asyncio
|
||||
import json
|
||||
import traceback
|
||||
from collections.abc import Awaitable, Mapping, Sequence
|
||||
from collections.abc import Awaitable, Mapping, Sequence, Set as AbstractSet
|
||||
from datetime import datetime, timezone
|
||||
from types import MappingProxyType
|
||||
from typing import Any, Final, Literal, Protocol, cast, overload
|
||||
|
|
@ -1661,8 +1661,8 @@ _SELF_UPDATE_PROTECTED_FIELDS: Final[tuple[str, ...]] = (
|
|||
|
||||
def _reject_ceiling_self_update(
|
||||
*,
|
||||
sent_fields: set[str],
|
||||
non_default_values: dict,
|
||||
sent_fields: AbstractSet[str],
|
||||
non_default_values: Mapping[str, Any],
|
||||
user_api_key_dict: UserAPIKeyAuth,
|
||||
) -> None:
|
||||
"""Raise 403 when a non-admin self-update touches a user-level ceiling.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue