@@ -406,7 +406,7 @@ async def start_workflow(
406406 args : Sequence [Any ] = [],
407407 id : str ,
408408 task_queue : str ,
409- result_type : Optional [Type ] = None ,
409+ result_type : Optional [Type [ ReturnType ] ] = None ,
410410 execution_timeout : Optional [timedelta ] = None ,
411411 run_timeout : Optional [timedelta ] = None ,
412412 task_timeout : Optional [timedelta ] = None ,
@@ -431,7 +431,7 @@ async def start_workflow(
431431 request_eager_start : bool = False ,
432432 priority : temporalio .common .Priority = temporalio .common .Priority .default ,
433433 versioning_override : Optional [temporalio .common .VersioningOverride ] = None ,
434- ) -> WorkflowHandle [Any , Any ]: ...
434+ ) -> WorkflowHandle [Any , ReturnType ]: ...
435435
436436 async def start_workflow (
437437 self ,
@@ -676,7 +676,7 @@ async def execute_workflow(
676676 args : Sequence [Any ] = [],
677677 id : str ,
678678 task_queue : str ,
679- result_type : Optional [Type ] = None ,
679+ result_type : Optional [Type [ ReturnType ] ] = None ,
680680 execution_timeout : Optional [timedelta ] = None ,
681681 run_timeout : Optional [timedelta ] = None ,
682682 task_timeout : Optional [timedelta ] = None ,
@@ -701,7 +701,7 @@ async def execute_workflow(
701701 request_eager_start : bool = False ,
702702 priority : temporalio .common .Priority = temporalio .common .Priority .default ,
703703 versioning_override : Optional [temporalio .common .VersioningOverride ] = None ,
704- ) -> Any : ...
704+ ) -> ReturnType : ...
705705
706706 async def execute_workflow (
707707 self ,
@@ -889,10 +889,10 @@ async def execute_update_with_start_workflow(
889889 start_workflow_operation : WithStartWorkflowOperation [Any , Any ],
890890 args : Sequence [Any ] = [],
891891 id : Optional [str ] = None ,
892- result_type : Optional [Type ] = None ,
892+ result_type : Optional [Type [ LocalReturnType ] ] = None ,
893893 rpc_metadata : Mapping [str , str ] = {},
894894 rpc_timeout : Optional [timedelta ] = None ,
895- ) -> Any : ...
895+ ) -> LocalReturnType : ...
896896
897897 async def execute_update_with_start_workflow (
898898 self ,
@@ -1013,10 +1013,10 @@ async def start_update_with_start_workflow(
10131013 wait_for_stage : WorkflowUpdateStage ,
10141014 args : Sequence [Any ] = [],
10151015 id : Optional [str ] = None ,
1016- result_type : Optional [Type ] = None ,
1016+ result_type : Optional [Type [ LocalReturnType ] ] = None ,
10171017 rpc_metadata : Mapping [str , str ] = {},
10181018 rpc_timeout : Optional [timedelta ] = None ,
1019- ) -> WorkflowUpdateHandle [Any ]: ...
1019+ ) -> WorkflowUpdateHandle [LocalReturnType ]: ...
10201020
10211021 async def start_update_with_start_workflow (
10221022 self ,
0 commit comments