Typed async_all
This commit is contained in:
parent
4a93653357
commit
c2184fe244
@ -515,7 +515,7 @@ async def maybe_coroutine(f, *args, **kwargs):
|
||||
return value
|
||||
|
||||
|
||||
async def async_all(gen, *, check=_isawaitable):
|
||||
async def async_all(gen, *, check=_isawaitable) -> bool:
|
||||
for elem in gen:
|
||||
if check(elem):
|
||||
elem = await elem
|
||||
|
Loading…
x
Reference in New Issue
Block a user