mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-22 11:25:26 +00:00
Use space
separator before parenthesiszed expressions in comprehensions with leading comments. (#12282)
This commit is contained in:
parent
d0298dc26d
commit
bd01004a42
4 changed files with 274 additions and 6 deletions
|
@ -22,3 +22,10 @@ pub(crate) fn is_f_string_formatting_enabled(context: &PyFormatContext) -> bool
|
|||
pub(crate) fn is_with_single_item_pre_39_enabled(context: &PyFormatContext) -> bool {
|
||||
context.is_preview()
|
||||
}
|
||||
|
||||
/// See [#12282](https://github.com/astral-sh/ruff/pull/12282).
|
||||
pub(crate) fn is_comprehension_leading_expression_comments_same_line_enabled(
|
||||
context: &PyFormatContext,
|
||||
) -> bool {
|
||||
context.is_preview()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue