mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
So that something like "async def f() -> AsyncIterable[int]" doesn't return "Coroutine[AsyncIterable[int]]". Also more reliably detect async generators to warn about non-empty returns inside them.
6 lines
317 B
Python
6 lines
317 B
Python
async def foo(x):
|
|
await x
|
|
<error descr="Python version 3.5 does not support 'yield' inside async functions">yield x</error>
|
|
<error descr="Python does not support 'yield from' inside async functions">yield from x</error>
|
|
<error descr="non-empty 'return' inside asynchronous generator">return x</error>
|