fix(typing): resolve mypy errors in api.routes.controller.templates

This commit is contained in:
Mark Paronyan committed 2026-09-29 22:02:20 +03:00
1 parent bbf4e6aa2c
commit 323055c486
2 files changed
+12 -10

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ class ImagesRepository(BaseRepository):
result = await self._db_session.execute(query)
return list(result.scalars().all())
async def get_image_templates(self, image_id: int) -> Optional[List[models.Template]]:
async def get_image_templates(self, image_id: int) -> List[models.Template]:
"""
Get all templates that an image belongs to.
"""