mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-31 07:38:04 +00:00
ruff integration support
This commit is contained in:
parent
99e108dd53
commit
aabc96dde9
4 changed files with 268 additions and 232 deletions
|
@ -629,8 +629,7 @@ pub(crate) fn parse_strings(
|
|||
ast::ExprConstant {
|
||||
value: Constant::Bytes(content),
|
||||
kind: None,
|
||||
}
|
||||
.into(),
|
||||
},
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -652,8 +651,7 @@ pub(crate) fn parse_strings(
|
|||
ast::ExprConstant {
|
||||
value: Constant::Str(content.join("")),
|
||||
kind: initial_kind,
|
||||
}
|
||||
.into(),
|
||||
},
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -667,8 +665,7 @@ pub(crate) fn parse_strings(
|
|||
ast::ExprConstant {
|
||||
value: Constant::Str(current.drain(..).join("")),
|
||||
kind: initial_kind.clone(),
|
||||
}
|
||||
.into(),
|
||||
},
|
||||
)
|
||||
};
|
||||
|
||||
|
@ -695,7 +692,7 @@ pub(crate) fn parse_strings(
|
|||
|
||||
Ok(Expr::new(
|
||||
initial_start..last_end,
|
||||
ast::ExprJoinedStr { values: deduped }.into(),
|
||||
ast::ExprJoinedStr { values: deduped },
|
||||
))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue