Skip to content

Commit 1201284

Browse files
authored
Apply suggestions from code review
1 parent 939d1cf commit 1201284

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/content/docs/workflows/python/bindings.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ await env.MY_WORKFLOW.send_event(to_js({ "type": "my-event-type", "payload": { "
140140

141141
:::note
142142

143-
Values passed to `send_event` require explicit type translation into JS objects
143+
Values passed to `send_event` require explicit type translation into JS objects.
144144

145145
:::
146146

src/content/docs/workflows/python/python-workers-api.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar:
66

77
---
88

9-
This guide covers the Python Workflows SDK, with instructions of how to build and create workflows using Python.
9+
This guide covers the Python Workflows SDK, with instructions on how to build and create workflows using Python.
1010

1111
## WorkflowEntrypoint
1212

@@ -125,7 +125,7 @@ from workers.workflows import NonRetryableError
125125
raise NonRetryableError(message)
126126
```
127127

128-
## Configure a workflow instance
128+
## Configure a Workflow instance
129129

130130
You can bind a step to a specific retry policy by passing a `WorkflowStepConfig` object to the `config` parameter of the `step.do` decorator.
131131
With Python Workflows, you need to make sure that your `dict` respects the [`WorkflowStepConfig`](/workflows/build/workers-api/#workflowstepconfig) type.
@@ -141,8 +141,7 @@ class DemoWorkflowClass(WorkflowEntrypoint):
141141

142142
### Create an instance via binding
143143

144-
Note that `env` is a Javascript object exposed to the Python script via [JsProxy](https://pyodide.org/en/stable/usage/api/python-api/ffi.html#pyodide.ffi.JsProxy). You can
145-
access the binding like you would on a Javascript worker. Refer to the [Workflow binding documentation](/workflows/build/workers-api/#workflow) to learn more about the methods available.
144+
Note that `env` is a Javascript object exposed to the Python script via [JsProxy](https://pyodide.org/en/stable/usage/api/python-api/ffi.html#pyodide.ffi.JsProxy). You can access the binding like you would on a Javascript worker. Refer to the [Workflow binding documentation](/workflows/build/workers-api/#workflow) to learn more about the methods available.
146145

147146
Let's consider the previous binding called `MY_WORKFLOW`. Here's how you would create a new instance:
148147

0 commit comments

Comments
 (0)