fix(backend): corrige formatage ruff et typage mypy sur sites/current

CI en échec sur ruff format (ligne trop longue) et mypy (retour Any non
annoté, assignation Literal non étroite). Corrige sans changer le
comportement.
This commit is contained in:
Johan LEROY
2026-09-16 15:27:05 +02:00
parent 07ea8d21dc
commit 2f97e4d434
4 changed files with 7 additions and 10 deletions
+1 -3
View File
@@ -42,9 +42,7 @@ async def get_site(site_id: str, _: LecteurDep, service: SiteServiceDep) -> Site
summary="Dernière mesure d'un site",
responses=REPONSES_INTROUVABLE,
)
async def get_current(
site_id: str, _: LecteurDep, service: SiteServiceDep
) -> SiteCurrentResponse:
async def get_current(site_id: str, _: LecteurDep, service: SiteServiceDep) -> SiteCurrentResponse:
try:
actuel = await service.current(site_id)
except SiteNotFoundError as erreur: