From f9ae93187255277fa937a79454b5bb29f0633bb1 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 4 Oct 2025 14:41:16 -0700 Subject: [PATCH] fix(proxy/utils.py): fix linting error --- litellm/proxy/utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index f2652ba2c68..23877fc9875 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -3575,7 +3575,7 @@ def handle_exception_on_proxy(e: Exception) -> ProxyException: ) -def _premium_user_check(feature:str=None): +def _premium_user_check(feature: Optional[str] = None): """ Raises an HTTPException if the user is not a premium user """ @@ -3589,9 +3589,7 @@ def _premium_user_check(feature:str=None): if not premium_user: raise HTTPException( status_code=403, - detail={ - "error": detail_msg - }, + detail={"error": detail_msg}, )