Skip to content

Commit e8b3925

Browse files
committed
Bug fix: support output type with execute_operation
1 parent 27ab162 commit e8b3925

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

temporalio/workflow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5204,12 +5204,14 @@ async def execute_operation(
52045204
],
52055205
input: I,
52065206
*,
5207+
output_type: Optional[Type[O]] = None,
52075208
schedule_to_close_timeout: Optional[timedelta] = None,
52085209
headers: Optional[Mapping[str, str]] = None,
52095210
) -> O:
52105211
handle: NexusOperationHandle[O] = await self.start_operation(
52115212
operation,
52125213
input,
5214+
output_type=output_type,
52135215
schedule_to_close_timeout=schedule_to_close_timeout,
52145216
headers=headers,
52155217
)

0 commit comments

Comments
 (0)