Files
openide/python/testData/inspections/PyCompatibilityInspection/yieldInsideAsyncDef.py
lada.gaginaandintellij-monorepo-bot 75b1ecd244 [python] Cleanup supported/unsupported versions xmls
- Drop support for python 3.5 & 3.6 in compatibility inspection
- Fix and remove some outdated tests
- Remove xmls for long-unsupported python 2.6 & 3.5
- Regenerate versions.xml
- Remove mentions of OS-specific modules

GitOrigin-RevId: 3265dd1de8a4f7a41119e10c95bb705ca5845efe
2023-11-17 18:57:31 +00:00

6 lines
666 B
Python

<warning descr="Python version 2.7 does not support this syntax">async</warning> def foo(x):
<warning descr="Python version 2.7 does not support this syntax">await x</warning>
yield x
<error descr="Python does not support 'yield from' inside async functions"><warning descr="Python version 2.7 does not support this syntax. Delegating to a subgenerator is available since Python 3.3; use explicit iteration over subgenerator instead.">yield from x</warning></error>
<error descr="non-empty 'return' inside asynchronous generator"><warning descr="Python versions < 3.3 do not allow 'return' with argument inside generator.">return x</warning></error>