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
+2 -1
View File
@@ -27,4 +27,5 @@ class ReadingRepository:
.order_by(Reading.timestamp.desc())
.limit(1)
)
return await self._session.scalar(requete)
lecture: Reading | None = await self._session.scalar(requete)
return lecture