feat(): proper type annotation for resume routes

This commit is contained in:
gitgernit
2025-11-21 22:28:14 +03:00
parent f7548e5828
commit 601a66284f
@@ -1,5 +1,6 @@
from decimal import Decimal
from enum import StrEnum
from typing import Annotated
from dishka.integrations.fastapi import DishkaRoute
from fastapi import APIRouter, Depends, Query
@@ -204,8 +205,8 @@ async def get_resume(
},
)
async def get_resume_list(
limit: int = Query(..., ge=1, le=100, description="Number of resumes to return", examples=[10]),
offset: int = Query(..., ge=0, description="Number of resumes to skip", examples=[0]),
limit: Annotated[int, Query(ge=1, le=100, description="Number of resumes to return", examples=[10])],
offset: Annotated[int, Query(ge=0, description="Number of resumes to skip", examples=[0])],
) -> GetResumeListResponse:
# TODO: Implement resume list retrieval
raise NotImplementedError
@@ -267,8 +268,8 @@ class PatchResumeResponse(BaseModel):
)
async def get_resume_history(
resume_id: str,
limit: int = Query(..., ge=1, le=100, description="Number of history items to return", examples=[10]),
offset: int = Query(..., ge=0, description="Number of history items to skip", examples=[0]),
limit: Annotated[int, Query(ge=1, le=100, description="Number of history items to return", examples=[10])],
offset: Annotated[int, Query(ge=0, description="Number of history items to skip", examples=[0])],
) -> GetResumeHistoryResponse:
# TODO: Implement resume history retrieval
raise NotImplementedError