Skip to content

formatOnType strips spacing around = for comma-trailing statements #1787

Closed

Description

b = {a: b, c: d,
}

becomes:

b={a: b, c: d,
}

Activity

  1. added
    bug
    on May 29, 2018
  2. changed the title [-]formatOnType strips spacing around `=` for multi-line dicts[/-] on May 29, 2018
  3. brettcannon commented on May 29, 2018

    @brettcannon
    MemberAuthor
    a = 1,

    becomes:

    a=1,
  4. brettcannon commented on May 29, 2018

    @brettcannon
    MemberAuthor
    d= 1, b, c,

    becomes:

    d=1, b, c,
  5. brettcannon commented on May 29, 2018

    @brettcannon
    MemberAuthor
    foo = long_function_name(var_one, var_two,
    )

    becomes:

    foo=long_function_name(var_one, var_two,
    )
  6. MikhailArkhipov commented on May 30, 2018

    @MikhailArkhipov

    Yep since they look like

    foo(a,
    b=1,c,
    d)
    
  7. locked as resolved and limited conversation to collaborators on Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-formattingbug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions