Skip to content

"Single line" def which spans multiple lines compiled incorrectly #231

@asottile

Description

@asottile
#def f(
    x,
): bar

Is compiled to (simplified):

def f(self, x):
    # No contents

def respond(self):
    write('bar')

I expect:

def f(self, x):
    write('bar')

def respond(self):
    # No contents

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions