Skip to content

Unary - reporting as W503 #484

@IanLee1521

Description

@IanLee1521

Copying from #384 (comment) per @rkern.

Similarly, unary - is falsely being reported as a W503 violation.

[~/scratch]$ cat false_pep8.py
y = 75.0
z = 100.0
x = (y /
     -z)
[~/scratch]$ pep8 false_pep8.py
false_pep8.py:4:6: W503 line break before binary operator
[~/scratch]$ pep8 --version
1.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions