Open
Description
This fails mypy --strict
(v0.782):
from types import coroutine
from typing import Any, Iterator
async def my_async_func() -> None:
await my_coro_func()
@coroutine
def my_coro_func() -> Iterator[None]:
yield None
but this passes:
from types import coroutine
from typing import Any, Iterator
@coroutine
def my_coro_func() -> Iterator[None]:
yield None
async def my_async_func() -> None:
await my_coro_func()
MyPy playground links: