Skip to content

Commit 6b7e9ac

Browse files
didier-durandtillrohrmann
authored andcommitted
doc: fix various typos
1 parent 3ad5b7d commit 6b7e9ac

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ We know that your time is precious and, therefore, deeply value any effort to co
5656
* [just](https://github.com/casey/just)
5757
* [Rust toolchain](https://rustup.rs/)
5858

59-
Setup your virtual environment using the tool of your choice, e.g. VirtualEnv:
59+
Set up your virtual environment using the tool of your choice, e.g. VirtualEnv:
6060

6161
```shell
6262
python3 -m venv .venv

python/restate/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class AttemptFinishedEvent(abc.ABC):
120120
Represents an attempt finished event.
121121
122122
This event is used to signal that an attempt has finished (either successfully or with an error), and it is now
123-
safe to cleanup any attempt related resources, such as pending ctx.run() 3rd party calls, or any other resources that
123+
safe to clean up any attempt related resources, such as pending ctx.run() 3rd party calls, or any other resources that
124124
are only valid for the duration of the attempt.
125125
126126
An attempt is considered finished when either the connection to the restate server is closed, the invocation is completed, or a transient

python/restate/endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __init__(self):
3737
Create a new restate endpoint that serves as a container for all the services and objects
3838
"""
3939
self.services = {}
40-
# we will let the user to override it later perhaps, but for now let us
40+
# we will let the user override it later perhaps, but for now let us
4141
# auto deduce it on discovery.
4242
# None means that the user did not explicitly set it.
4343
self.protocol = None

python/restate/ext/openai/runner_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async def call_llm() -> RestateModelResponse:
8686
retry_interval_factor=self.llm_retry_opts.retry_interval_factor,
8787
),
8888
)
89-
# collect function call IDs, to
89+
# collect function call IDs, too
9090
ids = get_function_call_ids(result.output)
9191
self.state.turnstile = Turnstile(ids)
9292

python/restate/harness.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def create_restate_container(
296296
:param restate_image: The image name for the restate-server container
297297
(default is "restatedev/restate:latest").
298298
:param always_replay: When True, this forces restate-server to always replay
299-
on a suspension point. This is useful to hunt non deterministic bugs
299+
on a suspension point. This is useful to hunt non-deterministic bugs
300300
that might prevent your code to replay correctly (default is False).
301301
:param disable_retries: When True, retries are disabled (default is False).
302302
"""
@@ -356,7 +356,7 @@ async def create_test_harness(
356356
:param restate_image: The image name for the restate-server container
357357
(default is "restatedev/restate:latest").
358358
:param always_replay: When True, this forces restate-server to always replay
359-
on a suspension point. This is useful to hunt non deterministic bugs
359+
on a suspension point. This is useful to hunt non-deterministic bugs
360360
that might prevent your code to replay correctly (default is False).
361361
:param disable_retries: When True, retries are disabled (default is False).
362362
"""

python/restate/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ async def app(scope: Scope, receive: Receive, send: Send):
262262
return
263263
#
264264
# At this point we have a valid handler.
265-
# Let us setup restate's execution context for this invocation and handler.
265+
# Let us set up restate's execution context for this invocation and handler.
266266
#
267267
receive_channel = ReceiveChannel(receive)
268268
try:

python/restate/vm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def take_notification(self, handle: int) -> typing.Union[NotificationType, Excep
223223
# success with an empty value
224224
return None
225225
if isinstance(result, bytes):
226-
# success with a non empty value
226+
# success with a non-empty value
227227
return result
228228
if isinstance(result, PyStateKeys):
229229
# success with state keys

0 commit comments

Comments
 (0)