Bug: C419
incorrectly tries to remove list comprehension in async for
#12891
Labels
C419
incorrectly tries to remove list comprehension in async for
#12891
Following code gives an incorrect linting error:
Removing the list comprehension here is incorrect as
all
can not take an async generator.Changing it into
all(v async for v in async_gen())
gives:TypeError: 'async_generator' object is not iterable
Using Ruff version
0.5.7
.The text was updated successfully, but these errors were encountered: