Skip to content

formatOnType breaks *args when it is in the middle of a parameter list #1785

@brettcannon

Description

@brettcannon
def func(
    *a
): pass

becomes:

def func(
    * a
    
): pass

Notice the leading space before a.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-formattingbugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions