From 33aa80779efc3a7a1147668bbe4f2bcf56d321eb Mon Sep 17 00:00:00 2001 From: Sune Debel <1228354+suned@users.noreply.github.com> Date: Sat, 8 Nov 2025 20:10:55 +0100 Subject: [PATCH] fix typing --- src/stateless/async_.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/stateless/async_.py b/src/stateless/async_.py index 977d8ef..a133542 100644 --- a/src/stateless/async_.py +++ b/src/stateless/async_.py @@ -8,7 +8,6 @@ Any, Awaitable, Callable, - Coroutine, Generic, ParamSpec, TypeVar, @@ -124,7 +123,7 @@ def _process_target(payload: bytes) -> bytes: @overload -def wait(target: Coroutine[Any, Any, R]) -> Depend[Async, R]: +def wait(target: Awaitable[R]) -> Depend[Async, R]: ... @@ -133,7 +132,9 @@ def wait(target: Task[R]) -> Effect[Async, E, R]: ... -def wait(target: Coroutine[Any, Any, R] | Task[R]) -> Effect[Async, E, R]: +def wait( + target: Awaitable[R] | Task[R], +) -> Effect[Async, E, R]: """ Wait for the result of `target` using the `Async` ability.