ruff
fbfe2cb2 - [`flake8-async`] Fix false positives with multiple `async with` items (`ASYNC100`) (#12643)

Commit
1 year ago
[`flake8-async`] Fix false positives with multiple `async with` items (`ASYNC100`) (#12643) ## Summary Please see https://github.com/astral-sh/ruff/pull/12605#discussion_r1699957443 for a description of the issue. They way I fixed it is to get the *last* timeout item in the `with`, and if it's an `async with` and there are items after it, then don't trigger the lint. ## Test Plan Updated the fixture with some more cases.
Author
Parents
Loading