Skip to content

Commit 800c123

Browse files
committed
Autoformat
1 parent 582647e commit 800c123

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

nexus_multiple_args/handler/service_handler.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66
from temporalio import nexus
77

88
from nexus_multiple_args.handler.workflows import HelloHandlerWorkflow
9-
from nexus_multiple_args.service import (
10-
HelloInput,
11-
HelloOutput,
12-
MyNexusService,
13-
)
9+
from nexus_multiple_args.service import HelloInput, HelloOutput, MyNexusService
1410

1511

1612
@nexusrpc.handler.service_handler(service=MyNexusService)

nexus_multiple_args/handler/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ async def main(client: Optional[Client] = None):
4242
loop.run_until_complete(main())
4343
except KeyboardInterrupt:
4444
interrupt_event.set()
45-
loop.run_until_complete(loop.shutdown_asyncgens())
45+
loop.run_until_complete(loop.shutdown_asyncgens())

nexus_multiple_args/handler/workflows.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class HelloHandlerWorkflow:
1212
async def run(self, name: str, language: Language) -> HelloOutput:
1313
"""
1414
Handle the hello workflow with multiple arguments.
15-
16-
This method receives the individual arguments (name and language)
15+
16+
This method receives the individual arguments (name and language)
1717
that were unpacked from the HelloInput in the service handler.
1818
"""
1919
if language == Language.EN:
@@ -28,5 +28,5 @@ async def run(self, name: str, language: Language) -> HelloOutput:
2828
message = f"Merhaba {name} 👋"
2929
else:
3030
raise ValueError(f"Unsupported language: {language}")
31-
32-
return HelloOutput(message=message)
31+
32+
return HelloOutput(message=message)

tests/helpers/nexus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ async def delete_nexus_endpoint(
3636
id=id,
3737
version=version,
3838
)
39-
)
39+
)

0 commit comments

Comments
 (0)