From ec55ab1ddb1ff656498314887510890c2320b812 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 21 Sep 2026 18:57:48 +0000 Subject: [PATCH] refactor(auth): use Annotated dependency in change_password to satisfy strict gate Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/management_endpoints/password_endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/management_endpoints/password_endpoints.py b/litellm/proxy/management_endpoints/password_endpoints.py index bd3c9722d4d..a2466c83ef9 100644 --- a/litellm/proxy/management_endpoints/password_endpoints.py +++ b/litellm/proxy/management_endpoints/password_endpoints.py @@ -8,7 +8,7 @@ request kwargs to OTEL spans, which would log plaintext passwords. The audit signal is emitted by hand below, with field names only, never values. """ -from typing import TYPE_CHECKING, Final +from typing import TYPE_CHECKING, Annotated, Final from fastapi import APIRouter, Depends, HTTPException @@ -58,7 +58,7 @@ def _user_table( ) async def change_password( data: ChangePasswordRequest, - user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth), + user_api_key_dict: Annotated[UserAPIKeyAuth, Depends(user_api_key_auth)], ) -> ChangePasswordResponse: """ Change the calling user's own password.