Files
openide/python/testData/formatter/multilineBinaryExpressionInsideGenerator.py
Mikhail Golubev fc30a55f54 PY-24160 Do not give indent to a binary expression in parentheses
Use ContinuationIndent instead of ContinuationIndentWithoutFirst
for its operands and operators instead. This way we don't over-indent
a condition in parentheses when the opening bracket is on its own line.

Also test that binary expressions in other positions are not
over-indented thanks to the use of ContinuationWithoutFirst for them.
2017-10-30 14:09:46 +03:00

8 lines
54 B
Python

xs = (
x and
x
for x in range(10)
if
x and
x
)