Skip to content

Commit

Permalink
fixed content route registration (linter)
Browse files Browse the repository at this point in the history
  • Loading branch information
ychebyshev committed Feb 27, 2024
1 parent 943c743 commit 02f3092
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shvatka/api/routes/game.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import BinaryIO, Annotated
from typing import Annotated

from dishka.integrations.base import Depends
from dishka.integrations.fastapi import Depends as DiDepends, inject
Expand Down Expand Up @@ -61,7 +61,9 @@ async def get_game_file(
guid: str = Path(alias="guid"), # type: ignore[assignment]
) -> StreamingResponse:
game = await get_game(id_, dao=dao.game)
return StreamingResponse(b for b in await get_file_content(guid, file_gateway, player, game, dao.file_info))
return StreamingResponse(
b for b in await get_file_content(guid, file_gateway, player, game, dao.file_info)
)


def setup() -> APIRouter:
Expand Down

0 comments on commit 02f3092

Please sign in to comment.