Skip to content

Commit aa3aa23

Browse files
committed
Use sphinx format for a docstring
1 parent f744680 commit aa3aa23

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

temporalio/workflow.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5116,19 +5116,18 @@ def _to_proto(self) -> temporalio.bridge.proto.common.VersioningIntent.ValueType
51165116
class NexusClient(ABC, Generic[ServiceT]):
51175117
"""A client for invoking Nexus operations.
51185118
5119-
Example:
5120-
```python
5121-
nexus_client = workflow.create_nexus_client(
5122-
endpoint=my_nexus_endpoint,
5123-
service=MyService,
5124-
)
5125-
handle = await nexus_client.start_operation(
5126-
operation=MyService.my_operation,
5127-
input=MyOperationInput(value="hello"),
5128-
schedule_to_close_timeout=timedelta(seconds=10),
5129-
)
5130-
result = await handle.result()
5131-
```
5119+
Example::
5120+
5121+
nexus_client = workflow.create_nexus_client(
5122+
endpoint=my_nexus_endpoint,
5123+
service=MyService,
5124+
)
5125+
handle = await nexus_client.start_operation(
5126+
operation=MyService.my_operation,
5127+
input=MyOperationInput(value="hello"),
5128+
schedule_to_close_timeout=timedelta(seconds=10),
5129+
)
5130+
result = await handle.result()
51325131
"""
51335132

51345133
# Overload for nexusrpc.Operation

0 commit comments

Comments
 (0)