From 357a7014beee8f93137cdc7096f7981623922ce3 Mon Sep 17 00:00:00 2001 From: Piotr Kopalko Date: Fri, 18 Aug 2023 23:51:25 +0200 Subject: [PATCH] feat: Use Result type var instead of Any --- falcon/util/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/falcon/util/sync.py b/falcon/util/sync.py index 41ec79964..db9e21e37 100644 --- a/falcon/util/sync.py +++ b/falcon/util/sync.py @@ -227,7 +227,7 @@ def async_to_sync( return loop.run_until_complete(coroutine(*args, **kwargs)) -def runs_sync(coroutine: Callable[..., Awaitable[Any]]) -> Callable[..., Any]: +def runs_sync(coroutine: Callable[..., Awaitable[Result]]) -> Callable[..., Result]: """Transform a coroutine function into a synchronous method. This is achieved by always invoking the decorated coroutine function via