Python code does not correctly indent when using parentheses to create multi-line "if" tests. In order to make it visually clearer, the second line should be indented one extra level (according to the pep8 module). This is only an issue with "if" tests, because "if (" is 4 characters. So "for (", "while (", even "elif (" should not be additionally indented. Ideally, if it is possible, the indenter could check the number of characters of indentation and do this in any case where such a visual ambiguity could occur, but I don't know if this is possible. Reproducible: Always Actual Results: if (True == 1 or False == 0): pass Expected Results: if (True == 1 or False == 0): pass
Repro. Arch Linux 64-bit Kate 16.04.2 KDE Frameworks 5.23.0 Qt 5.7 xcb wm