Skip to content

Commit

Permalink
Clarify return type
Browse files Browse the repository at this point in the history
  • Loading branch information
john-kurkowski committed May 27, 2024
1 parent 1a3a1cb commit c811b4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/music/render/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
# Test-only property. Set to a large number to avoid text wrapping in the console.
_CONSOLE_WIDTH: int | None = None

UploadResult = asyncio.Task[None]


@click.command("render")
@music.util.coro
Expand Down Expand Up @@ -236,7 +238,7 @@ async def __call__(self) -> tuple[list[RenderResult], list[BaseException | None]

async def _render_project(
self, client: aiohttp.ClientSession, project: music.util.ExtendedProject
) -> tuple[list[RenderResult], list[asyncio.Task[None]]]:
) -> tuple[list[RenderResult], list[UploadResult]]:
"""Render a single project.
Eagerly uploads existing renders, then synchronously renders versions,
Expand Down

0 comments on commit c811b4a

Please sign in to comment.