mirror of
https://github.com/astral-sh/ruff
synced 2026-01-22 05:51:03 -05:00
13 lines
380 B
Rust
13 lines
380 B
Rust
use crate::{verbatim_text, FormatNodeRule, PyFormatter};
|
|
use ruff_formatter::{write, Buffer, FormatResult};
|
|
use rustpython_parser::ast::ExprSet;
|
|
|
|
#[derive(Default)]
|
|
pub struct FormatExprSet;
|
|
|
|
impl FormatNodeRule<ExprSet> for FormatExprSet {
|
|
fn fmt_fields(&self, item: &ExprSet, f: &mut PyFormatter) -> FormatResult<()> {
|
|
write!(f, [verbatim_text(item.range)])
|
|
}
|
|
}
|