mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Suite formatting and JoinNodesBuilder
(#4805)
This commit is contained in:
parent
03ee6033f9
commit
ebdc4afc33
5 changed files with 431 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
|||
use crate::context::PyFormatContext;
|
||||
use crate::{AsFormat, IntoFormat, PyFormatter};
|
||||
use ruff_formatter::{Format, FormatOwnedWithRule, FormatRefWithRule, FormatResult, FormatRule};
|
||||
use crate::prelude::*;
|
||||
use ruff_formatter::{FormatOwnedWithRule, FormatRefWithRule};
|
||||
use rustpython_parser::ast::Stmt;
|
||||
|
||||
pub(crate) mod stmt_ann_assign;
|
||||
|
@ -30,6 +29,7 @@ pub(crate) mod stmt_try;
|
|||
pub(crate) mod stmt_try_star;
|
||||
pub(crate) mod stmt_while;
|
||||
pub(crate) mod stmt_with;
|
||||
pub(crate) mod suite;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct FormatStmt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue