@@ -406,7 +406,7 @@ async def start_workflow(
406
406
args : Sequence [Any ] = [],
407
407
id : str ,
408
408
task_queue : str ,
409
- result_type : Optional [Type ] = None ,
409
+ result_type : Optional [Type [ ReturnType ] ] = None ,
410
410
execution_timeout : Optional [timedelta ] = None ,
411
411
run_timeout : Optional [timedelta ] = None ,
412
412
task_timeout : Optional [timedelta ] = None ,
@@ -431,7 +431,7 @@ async def start_workflow(
431
431
request_eager_start : bool = False ,
432
432
priority : temporalio .common .Priority = temporalio .common .Priority .default ,
433
433
versioning_override : Optional [temporalio .common .VersioningOverride ] = None ,
434
- ) -> WorkflowHandle [Any , Any ]: ...
434
+ ) -> WorkflowHandle [Any , ReturnType ]: ...
435
435
436
436
async def start_workflow (
437
437
self ,
@@ -676,7 +676,7 @@ async def execute_workflow(
676
676
args : Sequence [Any ] = [],
677
677
id : str ,
678
678
task_queue : str ,
679
- result_type : Optional [Type ] = None ,
679
+ result_type : Optional [Type [ ReturnType ] ] = None ,
680
680
execution_timeout : Optional [timedelta ] = None ,
681
681
run_timeout : Optional [timedelta ] = None ,
682
682
task_timeout : Optional [timedelta ] = None ,
@@ -701,7 +701,7 @@ async def execute_workflow(
701
701
request_eager_start : bool = False ,
702
702
priority : temporalio .common .Priority = temporalio .common .Priority .default ,
703
703
versioning_override : Optional [temporalio .common .VersioningOverride ] = None ,
704
- ) -> Any : ...
704
+ ) -> ReturnType : ...
705
705
706
706
async def execute_workflow (
707
707
self ,
@@ -889,10 +889,10 @@ async def execute_update_with_start_workflow(
889
889
start_workflow_operation : WithStartWorkflowOperation [Any , Any ],
890
890
args : Sequence [Any ] = [],
891
891
id : Optional [str ] = None ,
892
- result_type : Optional [Type ] = None ,
892
+ result_type : Optional [Type [ LocalReturnType ] ] = None ,
893
893
rpc_metadata : Mapping [str , str ] = {},
894
894
rpc_timeout : Optional [timedelta ] = None ,
895
- ) -> Any : ...
895
+ ) -> LocalReturnType : ...
896
896
897
897
async def execute_update_with_start_workflow (
898
898
self ,
@@ -1013,10 +1013,10 @@ async def start_update_with_start_workflow(
1013
1013
wait_for_stage : WorkflowUpdateStage ,
1014
1014
args : Sequence [Any ] = [],
1015
1015
id : Optional [str ] = None ,
1016
- result_type : Optional [Type ] = None ,
1016
+ result_type : Optional [Type [ LocalReturnType ] ] = None ,
1017
1017
rpc_metadata : Mapping [str , str ] = {},
1018
1018
rpc_timeout : Optional [timedelta ] = None ,
1019
- ) -> WorkflowUpdateHandle [Any ]: ...
1019
+ ) -> WorkflowUpdateHandle [LocalReturnType ]: ...
1020
1020
1021
1021
async def start_update_with_start_workflow (
1022
1022
self ,
0 commit comments