mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix(rate-limiting): use an immutable tuple for TagRateLimitGroup.limits
Pre-existing mutable list[TagRateLimitEntry] field newly tripped the type-discipline LIT001 ratchet after the rebase lowered its ceiling. No other code relies on list mutation here (the one reader already wraps it in tuple()), so switch to tuple[TagRateLimitEntry, ...].
This commit is contained in:
parent
170aa0604b
commit
50a11743d8
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ class TagRateLimitEntry(BaseModel):
|
|||
|
||||
|
||||
class TagRateLimitGroup(BaseModel):
|
||||
limits: list[TagRateLimitEntry] = Field(default_factory=list)
|
||||
limits: tuple[TagRateLimitEntry, ...] = ()
|
||||
|
||||
|
||||
class TagRateLimits(BaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue