mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(management-v1): suppress the tags tuple type error on the user PATCH route
FastAPI annotates tags as a list, so the tuple the route passes is a reportArgumentType error even though any sequence works. Suppressed rather than switched to a list literal, which LIT002 rejects.
This commit is contained in:
parent
423563ed9c
commit
196468c693
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ def _problem_from_http_exception(exc: HTTPException) -> ManagementProblem:
|
|||
|
||||
@router.patch(
|
||||
"/users/{user_id}",
|
||||
tags=("Internal User management",),
|
||||
tags=("Internal User management",), # pyright: ignore[reportArgumentType] # annotated list, takes a sequence
|
||||
dependencies=(Depends(user_api_key_auth),),
|
||||
response_model=ItemResponse[UserItem],
|
||||
responses=problem_responses(403, 404, 422, 500, 503),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue