Skip to content

Commit 230e45f

Browse files
committed
Mypy workaround
1 parent accdc29 commit 230e45f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/nexus/test_workflow_caller_cancellation_types_when_cancel_handler_fails.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ async def cancel(
8282
self, ctx: nexusrpc.handler.CancelOperationContext, token: str
8383
) -> None:
8484
client = nexus.client()
85-
handler_wf = client.get_workflow_handle_for(
86-
HandlerWorkflow.run,
87-
workflow_id=nexus.WorkflowHandle[None].from_token(token).workflow_id,
85+
handler_wf: WorkflowHandle[HandlerWorkflow, None] = (
86+
client.get_workflow_handle_for(
87+
HandlerWorkflow.run,
88+
workflow_id=nexus.WorkflowHandle[None].from_token(token).workflow_id,
89+
)
8890
)
8991
await handler_wf.signal(HandlerWorkflow.set_cancel_handler_released)
9092
test_context.cancel_handler_released.set_result(datetime.now(timezone.utc))

0 commit comments

Comments
 (0)