Run formatter and address linter complaints · temporalio/sdk-python@b0dd232 · GitHub
Skip to content

Commit b0dd232

Browse files
committed
Run formatter and address linter complaints
1 parent 286ba81 commit b0dd232

6 files changed

Lines changed: 14 additions & 18 deletions

File tree

‎temporalio/nexus/__init__.py‎

Lines changed: 2 additions & 2 deletions

‎temporalio/nexus/_temporal_client.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
import asyncio
4-
from collections.abc import Awaitable, Callable, Sequence, Mapping
4+
from collections.abc import Awaitable, Callable, Mapping, Sequence
55
from dataclasses import dataclass
66
from datetime import timedelta
77
from typing import (
@@ -11,14 +11,18 @@
1111
Generic,
1212
Self,
1313
TypeVar,
14-
overload,
1514
cast,
15+
overload,
1616
)
1717

1818
from nexusrpc import HandlerError, HandlerErrorType
1919
from nexusrpc.handler import StartOperationResultAsync, StartOperationResultSync
2020

2121
import temporalio.common
22+
from temporalio.nexus._operation_context import (
23+
_start_nexus_backing_workflow,
24+
_TemporalStartOperationContext,
25+
)
2226
from temporalio.types import (
2327
MethodAsyncNoParam,
2428
MethodAsyncSingleParam,
@@ -27,10 +31,6 @@
2731
ReturnType,
2832
SelfType,
2933
)
30-
from temporalio.nexus._operation_context import (
31-
_TemporalStartOperationContext,
32-
_start_nexus_backing_workflow,
33-
)
3434

3535
if TYPE_CHECKING:
3636
import temporalio.client

‎temporalio/nexus/_token.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from __future__ import annotations
22

33
import base64
4-
from enum import IntEnum
54
import json
65
from dataclasses import dataclass
6+
from enum import IntEnum
77
from typing import TYPE_CHECKING, Any, Generic, Self
88

99
from nexusrpc import OutputT

‎tests/nexus/test_nexus_type_errors.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ async def test_invoke_by_operation_definition_happy_path(self) -> None:
235235
_output_2_1: MyOutput = await _handle_2
236236

237237
# temporal operation
238-
_output_3: None = await nexus_client.execute_operation(
238+
_output_3: None = await nexus_client.execute_operation( # type: ignore
239239
MyService.my_temporal_operation, 0
240240
)
241241
_handle_3: workflow.NexusOperationHandle[
242242
None
243243
] = await nexus_client.start_operation(MyService.my_temporal_operation, 0)
244-
_output_3_1: None = await _handle_3
244+
_output_3_1: None = await _handle_3 # type: ignore
245245

246246

247247
@workflow.defn
@@ -281,15 +281,15 @@ async def test_invoke_by_operation_handler_happy_path(self) -> None:
281281
_output_2_1: MyOutput = await _handle_2
282282

283283
# temporal operation
284-
_output_3: None = await nexus_client.execute_operation(
284+
_output_3: None = await nexus_client.execute_operation( # type: ignore
285285
MyServiceHandler.my_temporal_operation, 0
286286
)
287287
_handle_3: workflow.NexusOperationHandle[
288288
None
289289
] = await nexus_client.start_operation(
290290
MyServiceHandler.my_temporal_operation, 0
291291
)
292-
_output_3_1: None = await _handle_3
292+
_output_3_1: None = await _handle_3 # type: ignore
293293

294294

295295
@workflow.defn

‎tests/nexus/test_temporal_operation.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import asyncio
21
import uuid
32
from dataclasses import dataclass
4-
from datetime import datetime, timezone
5-
from typing import Any
63

74
import nexusrpc
85
import pytest
@@ -12,7 +9,6 @@
129
service_handler,
1310
)
1411

15-
1612
import temporalio.exceptions
1713
from temporalio import nexus, workflow
1814
from temporalio.client import Client, WorkflowFailureError

‎tests/nexus/test_workflow_caller_cancellation_types_when_cancel_handler_fails.py‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)