code | message | title | links |
---|---|---|---|
W503 |
Line break occurred before a binary operator |
Line break occurred before a binary operator (W503) |
Line breaks should occur after the binary operator to keep all variable names aligned.
This rule goes against the PEP 8 recommended style, which was changed on April 16th, 2016 in this commit. The tool will soon be updated to recommend the opposite: line breaks should occur before the binary operator because it keeps all operators aligned.
Note: Despite being in the anti-pattern section, this will soon be considered the best practice.
income = (gross_wages
+ taxable_interest)
Note: Despite being in the best practice section, this will soon be considered an anti-pattern.
income = (gross_wages +
taxable_interest)