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

Multiline statements with a comment generate wrong code in 1.4.2 #446

Closed
dchanm opened this issue Oct 24, 2018 · 2 comments
Closed

Multiline statements with a comment generate wrong code in 1.4.2 #446

dchanm opened this issue Oct 24, 2018 · 2 comments
Assignees

Comments

@dchanm
Copy link

dchanm commented Oct 24, 2018

#442 doesn't appear to fix the following

$ autopep8 --version
autopep8 1.4.2 (pycodestyle: 2.4.0)

$ python --version
Python 2.7.6

Testcase

def test():
    return (
        True not in [] and
        False  # comment required
    )

Expected result

def test():
    return (
        True not in [] and
        False  # comment required
    )

Actual result

def test():
    return (
        True not and n[]
        False  # comment required
    )   
@hhatto hhatto self-assigned this Oct 25, 2018
@hhatto
Copy link
Owner

hhatto commented Oct 29, 2018

Thanks for bug report.

fix in latest master 0e33031

We are planning to release version 1.4.3.

@hhatto
Copy link
Owner

hhatto commented Nov 12, 2018

version 1.4.3 released
https://pypi.org/project/autopep8/1.4.3/

@hhatto hhatto closed this as completed Nov 12, 2018
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

2 participants