This commit is contained in:
Brent Westbrook 2025-12-09 08:52:39 -05:00
parent c7b1089631
commit ea30464a2d
No known key found for this signature in database
1 changed files with 2 additions and 5 deletions

View File

@ -1,13 +1,10 @@
use ruff_formatter::{FormatRuleWithOptions, RemoveSoftLinesBuffer, format_args, write}; use ruff_formatter::{FormatRuleWithOptions, RemoveSoftLinesBuffer, format_args, write};
use ruff_python_ast::{AnyNodeRef, Expr, ExprLambda}; use ruff_python_ast::{AnyNodeRef, Expr, ExprLambda};
use ruff_python_trivia::SimpleTokenizer; use ruff_text_size::Ranged;
use ruff_text_size::{Ranged, TextRange};
use crate::builders::parenthesize_if_expands; use crate::builders::parenthesize_if_expands;
use crate::comments::{dangling_comments, leading_comments, trailing_comments}; use crate::comments::{dangling_comments, leading_comments, trailing_comments};
use crate::expression::parentheses::{ use crate::expression::parentheses::{NeedsParentheses, OptionalParentheses, Parentheses};
NeedsParentheses, OptionalParentheses, Parentheses, is_expression_parenthesized,
};
use crate::expression::{CallChainLayout, has_own_parentheses}; use crate::expression::{CallChainLayout, has_own_parentheses};
use crate::other::parameters::ParametersParentheses; use crate::other::parameters::ParametersParentheses;
use crate::prelude::*; use crate::prelude::*;