mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-26 11:59:35 +00:00
Move ExprConstant::kind
to StringConstant::unicode
(#7180)
This commit is contained in:
parent
31990b8d3f
commit
04f2842e4f
119 changed files with 130 additions and 504 deletions
|
@ -35,11 +35,7 @@ impl FormatRuleWithOptions<ExprConstant, PyFormatContext<'_>> for FormatExprCons
|
|||
|
||||
impl FormatNodeRule<ExprConstant> for FormatExprConstant {
|
||||
fn fmt_fields(&self, item: &ExprConstant, f: &mut PyFormatter) -> FormatResult<()> {
|
||||
let ExprConstant {
|
||||
range: _,
|
||||
value,
|
||||
kind: _,
|
||||
} = item;
|
||||
let ExprConstant { range: _, value } = item;
|
||||
|
||||
match value {
|
||||
Constant::Ellipsis => token("...").fmt(f),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue