Skip to content

E226: 'missing whitespace' introspection issue #248

Open
@David-OConnor

Description

I'm getting "PEP 8: missing whitespace around arithmetic operator" introspection flag in cases where I should not, per this section of Pep 8:

"If operators with different priorities are used, consider adding whitespace around the operators with the lowest priority(ies). Use your own judgment; however, never use more than one space, and always have the same amount of whitespace on both sides of a binary operator.

Yes:

i = i + 1
submitted += 1
x = x_2 - 1
hypot2 = x_x + y*y
c = (a+b) * (a-b)"

This may be to a change in Pep 8 that this tool hasn't caught up with:

http://hg.python.org/peps/rev/37af28ad2972
http://hg.python.org/peps/rev/16dd63848921

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions