.. _yield-inside-async-function: yield-inside-async-function / E1700 =================================== **Message emitted:** ``Yield inside async function`` **Description:** *Used when an `yield` or `yield from` statement is found inside an async function.* **Problematic code:** .. literalinclude:: /data/messages/y/yield-inside-async-function/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/y/yield-inside-async-function/good.py :language: python **Additional details:** The message can't be emitted when using Python < 3.5. **Related links:** - `PEP 525 `_ Created by the `async `__ checker.