You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following, you'd expect mypy to complain about assigning to await async_nothing, like it does with the synchronous case. Note that mypy does in fact complain about this using the old asyncio.coroutine yield from coroutines, see testErrorAssigningCoroutineThatDontReturn (prior to #12834).
def nothing() -> None:
...
def foo() -> None:
x = nothing() # E: "nothing" does not return a value
async def async_nothing() -> None:
...
async def async_foo() -> None:
x = await async_nothing()