Use the formatter prelude in more files (#6882)

Removes a bunch of imports that are made redundant by the prelude.
This commit is contained in:
Charlie Marsh 2023-08-25 16:51:07 -04:00 committed by GitHub
parent 91a780c771
commit edb9b0c62a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
81 changed files with 139 additions and 230 deletions

View file

@ -1,13 +1,13 @@
use ruff_formatter::{write, FormatOwnedWithRule, FormatRefWithRule};
use ruff_python_ast::node::AnyNodeRef;
use ruff_python_ast::{CmpOp, ExprCompare};
use crate::comments::{leading_comments, SourceComment};
use crate::expression::parentheses::{
in_parentheses_only_group, in_parentheses_only_soft_line_break_or_space, NeedsParentheses,
OptionalParentheses,
};
use crate::prelude::*;
use crate::FormatNodeRule;
use ruff_formatter::{write, FormatOwnedWithRule, FormatRefWithRule};
use ruff_python_ast::node::AnyNodeRef;
use ruff_python_ast::{CmpOp, ExprCompare};
#[derive(Default)]
pub struct FormatExprCompare;