ruff
1705fcef - Mark trailing comments in parenthesized tests (#6287)

Commit
2 years ago
Mark trailing comments in parenthesized tests (#6287) ## Summary This ensures that we treat `# comment` as parenthesized in contexts like: ```python while ( True # comment ): pass ``` The same logic applies equally to `for`, `async for`, `if`, `with`, and `async with`. The general pattern is that you have an expression which precedes a colon-separated suite.
Author
Parents
Loading