mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:35:58 +00:00
Introduce Token element (#7048)
This commit is contained in:
parent
2f3a950f6f
commit
c05e4628b1
78 changed files with 733 additions and 723 deletions
|
@ -30,7 +30,7 @@ impl FormatNodeRule<WithItem> for FormatWithItem {
|
|||
)?;
|
||||
|
||||
if let Some(optional_vars) = optional_vars {
|
||||
write!(f, [space(), text("as"), space()])?;
|
||||
write!(f, [space(), token("as"), space()])?;
|
||||
|
||||
if trailing_as_comments.is_empty() {
|
||||
write!(f, [optional_vars.format()])?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue