Skip to content

Preview: handle more huggable immediately nested parens/brackets #4011

@yilei

Description

@yilei

Describe the style change

#3964 handled the most common case from #1811, and I'd like the following cases to be handled too:

foo(
    (
        1,
        2,
        3,
    )
)

foo([
    [
        1,
        2,
        3,
    ]
])

See playgroud.

Desired style

foo((
    1,
    2,
    3,
))

foo([[
    1,
    2,
    3,
]])

Additional context

I'll send a PR if this proposal looks good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T: styleWhat do we want Blackened code to look like?

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions