From a0cc84045a6418bc97cc3b3d0ec6d08d6ce2b33d Mon Sep 17 00:00:00 2001 From: igalshilman Date: Mon, 7 Apr 2025 12:46:50 +0200 Subject: [PATCH] Fix type inference in Pycharm for ctx.run(). --- python/restate/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/restate/context.py b/python/restate/context.py index 36bf30d..54580bc 100644 --- a/python/restate/context.py +++ b/python/restate/context.py @@ -24,7 +24,7 @@ I = TypeVar('I') O = TypeVar('O') -RunAction = Union[Callable[..., T], Callable[..., Awaitable[T]]] +RunAction = Union[Callable[..., Awaitable[T]], Callable[..., T]] # pylint: disable=R0903