Skip to content

Commit 00e7d76

Browse files
authored
Fix type inference in PyCharm for ctx.run(). (#72)
1 parent 70f619a commit 00e7d76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/restate/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
I = TypeVar('I')
2525
O = TypeVar('O')
2626

27-
RunAction = Union[Callable[..., T], Callable[..., Awaitable[T]]]
27+
RunAction = Union[Callable[..., Awaitable[T]], Callable[..., T]]
2828

2929

3030
# pylint: disable=R0903

0 commit comments

Comments
 (0)