Skip to content

Commit 3513084

Browse files
committed
Partially workaround mypy bug?
temporalio/client.py:840: error: Overloaded function implementation does not accept all possible arguments of signature 1 [misc] temporalio/client.py:840: error: Overloaded function implementation does not accept all possible arguments of signature 2 [misc] temporalio/client.py:840: error: Overloaded function implementation does not accept all possible arguments of signature 3 [misc] temporalio/client.py:926: error: Overloaded function implementation does not accept all possible arguments of signature 1 [misc] temporalio/client.py:926: error: Overloaded function implementation does not accept all possible arguments of signature 2 [misc] temporalio/client.py:926: error: Overloaded function implementation does not accept all possible arguments of signature 3 [misc] After this commit would still produce temporalio/client.py:840: error: Overloaded function implementation does not accept all possible arguments of signature 1 [misc] temporalio/client.py:926: error: Overloaded function implementation does not accept all possible arguments of signature 1 [misc] hence type: ignore
1 parent f73defa commit 3513084

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

temporalio/client.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,8 @@ async def execute_update_with_start(
786786
self,
787787
update: temporalio.workflow.UpdateMethodMultiParam[[SelfType], LocalReturnType],
788788
*,
789-
id: Optional[str] = None,
790789
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
790+
id: Optional[str] = None,
791791
rpc_metadata: Mapping[str, str] = {},
792792
rpc_timeout: Optional[timedelta] = None,
793793
) -> LocalReturnType: ...
@@ -801,8 +801,8 @@ async def execute_update_with_start(
801801
],
802802
arg: ParamType,
803803
*,
804-
id: Optional[str] = None,
805804
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
805+
id: Optional[str] = None,
806806
rpc_metadata: Mapping[str, str] = {},
807807
rpc_timeout: Optional[timedelta] = None,
808808
) -> LocalReturnType: ...
@@ -816,8 +816,8 @@ async def execute_update_with_start(
816816
],
817817
*,
818818
args: MultiParamSpec.args, # pyright: ignore
819-
id: Optional[str] = None,
820819
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
820+
id: Optional[str] = None,
821821
rpc_metadata: Mapping[str, str] = {},
822822
rpc_timeout: Optional[timedelta] = None,
823823
) -> LocalReturnType: ...
@@ -829,34 +829,34 @@ async def execute_update_with_start(
829829
update: str,
830830
arg: Any = temporalio.common._arg_unset,
831831
*,
832+
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
832833
args: Sequence[Any] = [],
833834
id: Optional[str] = None,
834835
result_type: Optional[Type] = None,
835-
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
836836
rpc_metadata: Mapping[str, str] = {},
837837
rpc_timeout: Optional[timedelta] = None,
838838
) -> Any: ...
839839

840-
async def execute_update_with_start(
840+
async def execute_update_with_start( # type: ignore
841841
self,
842842
update: Union[str, Callable],
843843
arg: Any = temporalio.common._arg_unset,
844844
*,
845+
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
845846
args: Sequence[Any] = [],
846847
id: Optional[str] = None,
847848
result_type: Optional[Type] = None,
848-
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
849849
rpc_metadata: Mapping[str, str] = {},
850850
rpc_timeout: Optional[timedelta] = None,
851851
) -> Any:
852852
handle = await self._start_update_with_start(
853853
update,
854854
arg,
855855
args=args,
856+
start_workflow_operation=start_workflow_operation,
856857
wait_for_stage=WorkflowUpdateStage.COMPLETED,
857858
id=id,
858859
result_type=result_type,
859-
start_workflow_operation=start_workflow_operation,
860860
rpc_metadata=rpc_metadata,
861861
rpc_timeout=rpc_timeout,
862862
)
@@ -868,9 +868,9 @@ async def start_update_with_start(
868868
self,
869869
update: temporalio.workflow.UpdateMethodMultiParam[[SelfType], LocalReturnType],
870870
*,
871+
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
871872
wait_for_stage: WorkflowUpdateStage,
872873
id: Optional[str] = None,
873-
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
874874
rpc_metadata: Mapping[str, str] = {},
875875
rpc_timeout: Optional[timedelta] = None,
876876
) -> WorkflowUpdateHandle[LocalReturnType]: ...
@@ -884,9 +884,9 @@ async def start_update_with_start(
884884
],
885885
arg: ParamType,
886886
*,
887+
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
887888
wait_for_stage: WorkflowUpdateStage,
888889
id: Optional[str] = None,
889-
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
890890
rpc_metadata: Mapping[str, str] = {},
891891
rpc_timeout: Optional[timedelta] = None,
892892
) -> WorkflowUpdateHandle[LocalReturnType]: ...
@@ -900,9 +900,9 @@ async def start_update_with_start(
900900
],
901901
*,
902902
args: MultiParamSpec.args, # pyright: ignore
903+
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
903904
wait_for_stage: WorkflowUpdateStage,
904905
id: Optional[str] = None,
905-
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
906906
rpc_metadata: Mapping[str, str] = {},
907907
rpc_timeout: Optional[timedelta] = None,
908908
) -> WorkflowUpdateHandle[LocalReturnType]: ...
@@ -914,25 +914,25 @@ async def start_update_with_start(
914914
update: str,
915915
arg: Any = temporalio.common._arg_unset,
916916
*,
917+
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
917918
wait_for_stage: WorkflowUpdateStage,
918919
args: Sequence[Any] = [],
919920
id: Optional[str] = None,
920921
result_type: Optional[Type] = None,
921-
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
922922
rpc_metadata: Mapping[str, str] = {},
923923
rpc_timeout: Optional[timedelta] = None,
924924
) -> WorkflowUpdateHandle[Any]: ...
925925

926-
async def start_update_with_start(
926+
async def start_update_with_start( # type: ignore
927927
self,
928928
update: Union[str, Callable],
929929
arg: Any = temporalio.common._arg_unset,
930930
*,
931+
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
931932
wait_for_stage: WorkflowUpdateStage,
932933
args: Sequence[Any] = [],
933934
id: Optional[str] = None,
934935
result_type: Optional[Type] = None,
935-
start_workflow_operation: WithStartWorkflowOperation[SelfType, ReturnType],
936936
rpc_metadata: Mapping[str, str] = {},
937937
rpc_timeout: Optional[timedelta] = None,
938938
) -> WorkflowUpdateHandle[Any]:

0 commit comments

Comments
 (0)