Skip to content

Commit d0b7fbf

Browse files
committed
Fix expected type
1 parent 0329547 commit d0b7fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/async_utils/task_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
# Use below doesn't accept non-task Futures, so can't accept general awaitables
3030
type CoroFunc[**P, R] = Callable[P, Coroutine[t.Any, t.Any, R]]
31-
type TaskFunc[**P, R] = CoroFunc[P, R] | Callable[P, asyncio.Task[R]]
31+
type TaskFunc[**P, R] = Callable[P, asyncio.Task[R]]
3232
type TaskCoroFunc[**P, R] = CoroFunc[P, R] | TaskFunc[P, R]
3333

3434
type _CT_RET = tuple[tuple[t.Any, ...], dict[str, t.Any]]

0 commit comments

Comments
 (0)