From e7181f01628cd3110c6558fe2967b830431e0a08 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Tue, 13 Feb 2024 09:55:53 -0500 Subject: [PATCH] fix: mypy err --- a_sync/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a_sync/task.py b/a_sync/task.py index 85989157..eab45e78 100644 --- a/a_sync/task.py +++ b/a_sync/task.py @@ -21,7 +21,7 @@ def create_task(coro: Awaitable[T], *, name: Optional[str] = None, skip_gc_until __persist(task) return task -class TaskMapping(ASyncIterable[K, V], DefaultDict[K, "asyncio.Task[V]"]): +class TaskMapping(ASyncIterable[Tuple[K, V]], DefaultDict[K, "asyncio.Task[V]"]): def __init__(self, coro_fn: Callable[Concatenate[K, P], Awaitable[V]] = None, *iterables: AnyIterable[K], name: str = '', **coro_fn_kwargs: P.kwargs) -> None: self._coro_fn = coro_fn self._coro_fn_kwargs = coro_fn_kwargs