Skip to content

Commit 3e1fd3e

Browse files
fix formatting
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
1 parent c4487e4 commit 3e1fd3e

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/dispatch/experimental/durable/function.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ def __getstate__(self):
137137
if frame_state < FRAME_CLEARED:
138138
print(f"IP = {ip}")
139139
print(f"SP = {sp}")
140-
for i, (is_null, value) in enumerate(stack if stack is not None else []):
140+
for i, (is_null, value) in enumerate(
141+
stack if stack is not None else []
142+
):
141143
if is_null:
142144
print(f"stack[{i}] = NULL")
143145
else:

src/dispatch/experimental/durable/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __setstate__(self, state):
4242

4343
# mypy 1.10.0 seems to report a false positive here:
4444
# error: Incompatible types in assignment (expression has type "FunctionType", variable has type "MethodType") [assignment]
45-
self.fn = rfn.fn # type: ignore
45+
self.fn = rfn.fn # type: ignore
4646
self.key = key
4747
self.filename = filename
4848
self.lineno = lineno

src/dispatch/function.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ def primitive_func(input: Input) -> Output:
258258
primitive_func.__qualname__ = f"{name}_primitive"
259259
durable_primitive_func = durable(primitive_func)
260260

261-
wrapped_func = Function[P, T](self.endpoint, self.client, name, durable_primitive_func)
261+
wrapped_func = Function[P, T](
262+
self.endpoint, self.client, name, durable_primitive_func
263+
)
262264
self._register(name, wrapped_func)
263265
return wrapped_func
264266

tests/dispatch/test_scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import unittest
2-
from typing import Any, Callable, List, Optional, Type, Set
2+
from typing import Any, Callable, List, Optional, Set, Type
33

44
from dispatch.coroutine import AnyException, any, call, gather, race
55
from dispatch.experimental.durable import durable

0 commit comments

Comments
 (0)