From cb2031a9aaf38318ea3a308970575bb1716c742a Mon Sep 17 00:00:00 2001 From: Dwindi Ramadhana Date: Sun, 22 Mar 2026 07:50:20 +0700 Subject: [PATCH] fix: replace typing.any with typing.Any in admin router --- app/routers/admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/routers/admin.py b/app/routers/admin.py index 3c04f9f..ae79dd4 100644 --- a/app/routers/admin.py +++ b/app/routers/admin.py @@ -5,7 +5,7 @@ Provides admin-specific endpoints for triggering calibration, toggling AI generation, and resetting normalization. """ -from typing import Dict, Optional +from typing import Any, Dict, Optional from fastapi import APIRouter, Depends, Header, HTTPException, status from sqlalchemy import select @@ -61,7 +61,7 @@ async def admin_trigger_calibration( tryout_id: str, db: AsyncSession = Depends(get_db), website_id: int = Depends(get_admin_website_id), -) -> Dict[str, any]: +) -> Dict[str, Any]: """ Trigger IRT calibration for all items in a tryout. @@ -122,7 +122,7 @@ async def admin_toggle_ai_generation( tryout_id: str, db: AsyncSession = Depends(get_db), website_id: int = Depends(get_admin_website_id), -) -> Dict[str, any]: +) -> Dict[str, Any]: """ Toggle AI generation for a tryout. @@ -176,7 +176,7 @@ async def admin_reset_normalization( tryout_id: str, db: AsyncSession = Depends(get_db), website_id: int = Depends(get_admin_website_id), -) -> Dict[str, any]: +) -> Dict[str, Any]: """ Reset normalization for a tryout.