|
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] = {}, |
@@ -3233,7 +3233,7 @@ class ScheduleActionStartWorkflow(ScheduleAction): |
3233 | 3233 | headers: Optional[Mapping[str, temporalio.api.common.v1.Payload]] |
3234 | 3234 |
|
3235 | 3235 | @staticmethod |
3236 | | - def _from_proto( |
| 3236 | + def _from_proto( # pyright: ignore |
3237 | 3237 | info: temporalio.api.workflow.v1.NewWorkflowExecutionInfo, # type: ignore[override] |
3238 | 3238 | ) -> ScheduleActionStartWorkflow: |
3239 | 3239 | return ScheduleActionStartWorkflow("<unset>", raw_info=info) |
@@ -3482,7 +3482,6 @@ async def _to_proto( |
3482 | 3482 | return action |
3483 | 3483 |
|
3484 | 3484 |
|
3485 | | -@dataclass |
3486 | 3485 | class ScheduleOverlapPolicy(IntEnum): |
3487 | 3486 | """Controls what happens when a workflow would be started by a schedule but |
3488 | 3487 | one is already running. |
|
0 commit comments