35
35
import google .protobuf .duration_pb2
36
36
import google .protobuf .json_format
37
37
import google .protobuf .timestamp_pb2
38
- from typing_extensions import Concatenate , TypedDict
38
+ from typing_extensions import Concatenate , Required , TypedDict
39
39
40
40
import temporalio .api .common .v1
41
41
import temporalio .api .enums .v1
@@ -1112,12 +1112,12 @@ async def get_worker_task_reachability(
1112
1112
class ClientConfig (TypedDict , total = False ):
1113
1113
"""TypedDict of config originally passed to :py:meth:`Client`."""
1114
1114
1115
- service_client : temporalio .service .ServiceClient
1116
- namespace : str
1117
- data_converter : temporalio .converter .DataConverter
1118
- interceptors : Sequence [Interceptor ]
1119
- default_workflow_query_reject_condition : Optional [
1120
- temporalio .common .QueryRejectCondition
1115
+ service_client : Required [ temporalio .service .ServiceClient ]
1116
+ namespace : Required [ str ]
1117
+ data_converter : Required [ temporalio .converter .DataConverter ]
1118
+ interceptors : Required [ Sequence [Interceptor ] ]
1119
+ default_workflow_query_reject_condition : Required [
1120
+ Optional [ temporalio .common .QueryRejectCondition ]
1121
1121
]
1122
1122
1123
1123
@@ -1797,7 +1797,7 @@ async def execute_update(
1797
1797
MultiParamSpec , LocalReturnType
1798
1798
],
1799
1799
* ,
1800
- args : MultiParamSpec .args ,
1800
+ args : MultiParamSpec .args , # pyright: ignore
1801
1801
id : Optional [str ] = None ,
1802
1802
rpc_metadata : Mapping [str , str ] = {},
1803
1803
rpc_timeout : Optional [timedelta ] = None ,
@@ -1906,7 +1906,7 @@ async def start_update(
1906
1906
MultiParamSpec , LocalReturnType
1907
1907
],
1908
1908
* ,
1909
- args : MultiParamSpec .args ,
1909
+ args : MultiParamSpec .args , # pyright: ignore
1910
1910
wait_for_stage : WorkflowUpdateStage ,
1911
1911
id : Optional [str ] = None ,
1912
1912
rpc_metadata : Mapping [str , str ] = {},
@@ -3489,7 +3489,7 @@ class ScheduleOverlapPolicy(IntEnum):
3489
3489
"""
3490
3490
3491
3491
SKIP = int (
3492
- temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_SKIP
3492
+ temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_SKIP # pyright: ignore
3493
3493
)
3494
3494
"""Don't start anything.
3495
3495
@@ -3498,7 +3498,7 @@ class ScheduleOverlapPolicy(IntEnum):
3498
3498
"""
3499
3499
3500
3500
BUFFER_ONE = int (
3501
- temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_BUFFER_ONE
3501
+ temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_BUFFER_ONE # pyright: ignore
3502
3502
)
3503
3503
"""Start the workflow again soon as the current one completes, but only
3504
3504
buffer one start in this way.
@@ -3509,25 +3509,25 @@ class ScheduleOverlapPolicy(IntEnum):
3509
3509
"""
3510
3510
3511
3511
BUFFER_ALL = int (
3512
- temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_BUFFER_ALL
3512
+ temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_BUFFER_ALL # pyright: ignore
3513
3513
)
3514
3514
"""Buffer up any number of starts to all happen sequentially, immediately
3515
3515
after the running workflow completes."""
3516
3516
3517
3517
CANCEL_OTHER = int (
3518
- temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER
3518
+ temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER # pyright: ignore
3519
3519
)
3520
3520
"""If there is another workflow running, cancel it, and start the new one
3521
3521
after the old one completes cancellation."""
3522
3522
3523
3523
TERMINATE_OTHER = int (
3524
- temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER
3524
+ temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER # pyright: ignore
3525
3525
)
3526
3526
"""If there is another workflow running, terminate it and start the new one
3527
3527
immediately."""
3528
3528
3529
3529
ALLOW_ALL = int (
3530
- temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_ALLOW_ALL
3530
+ temporalio .api .enums .v1 .ScheduleOverlapPolicy .SCHEDULE_OVERLAP_POLICY_ALLOW_ALL # pyright: ignore
3531
3531
)
3532
3532
"""Start any number of concurrent workflows.
3533
3533
0 commit comments