Skip to content

Commit

Permalink
Add type annotation needed by mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Jul 15, 2024
1 parent 33d7701 commit 9266c22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/worker/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -5735,7 +5735,10 @@ async def test_workflow_return_is_honored_when_it_precedes_signal_completion_com
async def _do_first_completion_command_is_honored_test(
client: Client, main_workflow_returns_before_signal_completions: bool
):
workflow_cls = (
workflow_cls: Union[
Type[FirstCompletionCommandIsHonoredPingPongWorkflow],
Type[FirstCompletionCommandIsHonoredWorkflow],
] = (
FirstCompletionCommandIsHonoredPingPongWorkflow
if main_workflow_returns_before_signal_completions
else FirstCompletionCommandIsHonoredWorkflow
Expand Down

0 comments on commit 9266c22

Please sign in to comment.