MartinThoma / flake8-simplify

❄ A flake8 plugin that helps you to simplify code
MIT License
186 stars 19 forks source link

SIM104 proposes yield from under async generators #67

Closed ergoithz closed 2 years ago

ergoithz commented 3 years ago

Desired change

Explanation

Yield-from is strictly forbidden under async generators, it looks like flake8-simplify does not check if generator is async before proposing that change.

Example

async def items():
    for c in 'abc':
        yield c