Typed async_all

This commit is contained in:
Sengolda 2021-10-28 01:15:33 +05:30 committed by GitHub
parent 4a93653357
commit c2184fe244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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