Skip to content

Commit 828fa7c

Browse files
authored
fix typing (#17)
1 parent 02f8c86 commit 828fa7c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/stateless/async_.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Any,
99
Awaitable,
1010
Callable,
11-
Coroutine,
1211
Generic,
1312
ParamSpec,
1413
TypeVar,
@@ -124,7 +123,7 @@ def _process_target(payload: bytes) -> bytes:
124123

125124

126125
@overload
127-
def wait(target: Coroutine[Any, Any, R]) -> Depend[Async, R]:
126+
def wait(target: Awaitable[R]) -> Depend[Async, R]:
128127
...
129128

130129

@@ -133,7 +132,9 @@ def wait(target: Task[R]) -> Effect[Async, E, R]:
133132
...
134133

135134

136-
def wait(target: Coroutine[Any, Any, R] | Task[R]) -> Effect[Async, E, R]:
135+
def wait(
136+
target: Awaitable[R] | Task[R],
137+
) -> Effect[Async, E, R]:
137138
"""
138139
Wait for the result of `target` using the `Async` ability.
139140

0 commit comments

Comments
 (0)