Skip to content

Commit

Permalink
feat: Use Result type var instead of Any
Browse files Browse the repository at this point in the history
  • Loading branch information
copalco committed Aug 18, 2023
1 parent 06da103 commit 357a701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion falcon/util/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 357a701

Please sign in to comment.