From d803f528b13551c78d4dec5de43c55afee2ab074 Mon Sep 17 00:00:00 2001 From: Max Fischer Date: Sun, 6 Oct 2024 21:17:19 +0200 Subject: [PATCH] strictly follow AsyncGenerator interface --- asyncstdlib/asynctools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asyncstdlib/asynctools.py b/asyncstdlib/asynctools.py index b75731b..04c7620 100644 --- a/asyncstdlib/asynctools.py +++ b/asyncstdlib/asynctools.py @@ -35,7 +35,7 @@ class _BorrowedAsyncIterator(AsyncGenerator[T, S]): __slots__ = "__wrapped__", "__anext__", "asend", "athrow", "_wrapper" # Type checker does not understand `__slot__` definitions - __anext__: Callable[[Any], Awaitable[T]] + __anext__: Callable[[Any], Coroutine[Any, Any, T]] asend: Any athrow: Any