forked from phoenix/litellm-mirror
(code quality) add ruff check PLR0915 for too-many-statements
(#6309)
* ruff add PLR0915 * add noqa for PLR0915 * fix noqa * add # noqa: PLR0915 * # noqa: PLR0915 * # noqa: PLR0915 * # noqa: PLR0915 * add # noqa: PLR0915 * # noqa: PLR0915 * # noqa: PLR0915 * # noqa: PLR0915 * # noqa: PLR0915
This commit is contained in:
parent
7724d5895c
commit
610974b4fc
56 changed files with 137 additions and 119 deletions
|
@ -45,7 +45,7 @@ router = APIRouter()
|
|||
response_model=GenerateKeyResponse,
|
||||
)
|
||||
@management_endpoint_wrapper
|
||||
async def generate_key_fn(
|
||||
async def generate_key_fn( # noqa: PLR0915
|
||||
data: GenerateKeyRequest,
|
||||
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
|
||||
litellm_changed_by: Optional[str] = Header(
|
||||
|
@ -768,7 +768,7 @@ async def info_key_fn(
|
|||
)
|
||||
|
||||
|
||||
async def generate_key_helper_fn(
|
||||
async def generate_key_helper_fn( # noqa: PLR0915
|
||||
request_type: Literal[
|
||||
"user", "key"
|
||||
], # identifies if this request is from /user/new or /key/generate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue