Derived from the pyupgrade linter.
Fix is always available.
What it does#
for loops that can be replaced with
yield from expressions.
Why is this bad?#
for loop only contains a
yield statement, it can be replaced with a
yield from expression, which is more concise and idiomatic.