mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
Bool expression comment placement (#7269)
This commit is contained in:
parent
c21b960fc7
commit
1e6df19a35
12 changed files with 776 additions and 145 deletions
|
@ -15,7 +15,7 @@ pub struct FormatExprCompare;
|
|||
impl FormatNodeRule<ExprCompare> for FormatExprCompare {
|
||||
#[inline]
|
||||
fn fmt_fields(&self, item: &ExprCompare, f: &mut PyFormatter) -> FormatResult<()> {
|
||||
BinaryLike::CompareExpression(item).fmt(f)
|
||||
BinaryLike::Compare(item).fmt(f)
|
||||
}
|
||||
|
||||
fn fmt_dangling_comments(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue