mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +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
227 B
Python
6 lines
227 B
Python
async def foo(x):
|
|
await x
|
|
yield x
|
|
<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>
|