Skip to content

Commit

Permalink
Add return types
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jun 22, 2024
1 parent dfc5d5c commit bef3b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/v1/osu_api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


@router.get("/api/v2/beatmapsets/{beatmapset_id}")
async def get_beatmapset(beatmapset_id: int):
async def get_beatmapset(beatmapset_id: int) -> Response:
osu_api_beatmapset = await api.get_beatmapset(beatmapset_id)
if osu_api_beatmapset is None:
return Response(status_code=404)
Expand All @@ -25,7 +25,7 @@ async def get_beatmapset(beatmapset_id: int):


@router.get("/api/v2/beatmaps/{beatmap_id}")
async def get_beatmap(beatmap_id: int):
async def get_beatmap(beatmap_id: int) -> Response:
osu_api_beatmap = await api.get_beatmap(beatmap_id)
if osu_api_beatmap is None:
return Response(status_code=404)
Expand Down

0 comments on commit bef3b5d

Please sign in to comment.