Skip to content

Commit ef9bb60

Browse files
committed
Satisfy mypy
1 parent 9a30e77 commit ef9bb60

File tree

1 file changed

+2
-2
lines changed
  • message_passing/waiting_for_handlers_and_compensation

1 file changed

+2
-2
lines changed

message_passing/waiting_for_handlers_and_compensation/workflows.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self) -> None:
3232
# "race" this future against a task performing the message handler's own
3333
# application logic; if this future completes before the message handler
3434
# task then the handler should abort and perform compensation.
35-
self.workflow_exit = asyncio.Future()
35+
self.workflow_exit: asyncio.Future[None] = asyncio.Future()
3636
self._update_compensation_done = False
3737

3838
@workflow.run
@@ -82,7 +82,7 @@ async def my_update(self) -> str:
8282
# 👉 "Race" the workflow_exit future against the handler's own application
8383
# logic. Always use `workflow.wait` instead of `asyncio.wait` in
8484
# Workflow code: asyncio's version is non-deterministic.
85-
await workflow.wait(
85+
await workflow.wait( # type: ignore
8686
[update_task, self.workflow_exit], return_when=asyncio.FIRST_EXCEPTION
8787
)
8888
try:

0 commit comments

Comments
 (0)