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