mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
![]() ## Summary Given `with (a := b): pass`, we truncate the `WithItem` range by one on both sides such that the parentheses are part of the statement, rather than the item. However, for `with (a := b) as x: pass`, we want to avoid this trick. Closes https://github.com/astral-sh/ruff/issues/8913. |
||
---|---|---|
.. | ||
lexer | ||
snapshots | ||
context.rs | ||
function.rs | ||
invalid.rs | ||
lexer.rs | ||
lib.rs | ||
parser.rs | ||
python.lalrpop | ||
python.rs | ||
soft_keywords.rs | ||
string.rs | ||
token.rs | ||
typing.rs |