mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
fix(typing): resolve mypy errors in api.routes.controller.templates
This commit is contained in:
2 files changed
+12
-10
No files matched your search
@@ -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.
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user