An async function with no return type declaration, like:
async def foo():
This is inferred as returning Any, but should be inferred as returning Awaitable[Any]. The result of this has caused us to miss a bunch of unused awaitable warnings via incomplete stubs.
An async function with no return type declaration, like:
async def foo():
This is inferred as returning
Any
, but should be inferred as returningAwaitable[Any]
. The result of this has caused us to miss a bunch of unused awaitable warnings via incomplete stubs.