@@ -447,7 +447,7 @@ async def start_workflow(
447447 args : Sequence [Any ] = [],
448448 id : str ,
449449 task_queue : str ,
450- result_type : Optional [Type ] = None ,
450+ result_type : Optional [Type [ ReturnType ] ] = None ,
451451 execution_timeout : Optional [timedelta ] = None ,
452452 run_timeout : Optional [timedelta ] = None ,
453453 task_timeout : Optional [timedelta ] = None ,
@@ -472,7 +472,7 @@ async def start_workflow(
472472 request_eager_start : bool = False ,
473473 priority : temporalio .common .Priority = temporalio .common .Priority .default ,
474474 versioning_override : Optional [temporalio .common .VersioningOverride ] = None ,
475- ) -> WorkflowHandle [Any , Any ]: ...
475+ ) -> WorkflowHandle [Any , ReturnType ]: ...
476476
477477 async def start_workflow (
478478 self ,
@@ -728,7 +728,7 @@ async def execute_workflow(
728728 args : Sequence [Any ] = [],
729729 id : str ,
730730 task_queue : str ,
731- result_type : Optional [Type ] = None ,
731+ result_type : Optional [Type [ ReturnType ] ] = None ,
732732 execution_timeout : Optional [timedelta ] = None ,
733733 run_timeout : Optional [timedelta ] = None ,
734734 task_timeout : Optional [timedelta ] = None ,
@@ -753,7 +753,7 @@ async def execute_workflow(
753753 request_eager_start : bool = False ,
754754 priority : temporalio .common .Priority = temporalio .common .Priority .default ,
755755 versioning_override : Optional [temporalio .common .VersioningOverride ] = None ,
756- ) -> Any : ...
756+ ) -> ReturnType : ...
757757
758758 async def execute_workflow (
759759 self ,
@@ -941,10 +941,10 @@ async def execute_update_with_start_workflow(
941941 start_workflow_operation : WithStartWorkflowOperation [Any , Any ],
942942 args : Sequence [Any ] = [],
943943 id : Optional [str ] = None ,
944- result_type : Optional [Type ] = None ,
944+ result_type : Optional [Type [ LocalReturnType ] ] = None ,
945945 rpc_metadata : Mapping [str , str ] = {},
946946 rpc_timeout : Optional [timedelta ] = None ,
947- ) -> Any : ...
947+ ) -> LocalReturnType : ...
948948
949949 async def execute_update_with_start_workflow (
950950 self ,
@@ -1062,10 +1062,10 @@ async def start_update_with_start_workflow(
10621062 wait_for_stage : WorkflowUpdateStage ,
10631063 args : Sequence [Any ] = [],
10641064 id : Optional [str ] = None ,
1065- result_type : Optional [Type ] = None ,
1065+ result_type : Optional [Type [ LocalReturnType ] ] = None ,
10661066 rpc_metadata : Mapping [str , str ] = {},
10671067 rpc_timeout : Optional [timedelta ] = None ,
1068- ) -> WorkflowUpdateHandle [Any ]: ...
1068+ ) -> WorkflowUpdateHandle [LocalReturnType ]: ...
10691069
10701070 async def start_update_with_start_workflow (
10711071 self ,
0 commit comments