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

Misfold on function definitons with multi-line arguments #40

Closed
nnathan opened this issue Jul 13, 2015 · 2 comments
Closed

Misfold on function definitons with multi-line arguments #40

nnathan opened this issue Jul 13, 2015 · 2 comments

Comments

@nnathan
Copy link

nnathan commented Jul 13, 2015

Just want to report a case where folding seems to fail.

Test case:

def bad_fold(
    foo,
    bar
):  
    pass
    pass
    pass
    pass


def foo():
    pass
    pass
    pass
    pass

Results after fold:

+--  3 lines: def bad_fold(--------------------------------------------------------------------------------------------------------------------------------------------
):  
    pass
    pass
    pass
    pass


+--  5 lines: def foo():-----------------------------------------------------------------------------------------------------------------------------------------------
@j3r3miah
Copy link
Contributor

j3r3miah commented Dec 15, 2016

I've fixed this with a hack which, despite being fairly ugly, has been working nicely: 2905dc4.

cc: @nnathan @anntzer

@nfnty
Copy link
Collaborator

nfnty commented Feb 16, 2017

This has been fixed. Also, there are trailing spaces after your ): line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants