Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
asottile opened this issue Jun 3, 2016 · 0 comments
Open

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

asottile opened this issue Jun 3, 2016 · 0 comments
Labels

Comments

@asottile
Copy link
Collaborator

asottile commented Jun 3, 2016

#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
@asottile asottile added the bug label Jun 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant