mirror of https://github.com/astral-sh/ruff
13 lines
416 B
Rust
13 lines
416 B
Rust
use crate::{not_yet_implemented, FormatNodeRule, PyFormatter};
|
|
use ruff_formatter::{write, Buffer, FormatResult};
|
|
use rustpython_parser::ast::Comprehension;
|
|
|
|
#[derive(Default)]
|
|
pub struct FormatComprehension;
|
|
|
|
impl FormatNodeRule<Comprehension> for FormatComprehension {
|
|
fn fmt_fields(&self, item: &Comprehension, f: &mut PyFormatter) -> FormatResult<()> {
|
|
write!(f, [not_yet_implemented(item)])
|
|
}
|
|
}
|