autopep8 converts this code
sum_of_two_numbers = first \
+ second
to this
sum_of_two_numbers = first \
+ second
Is it a bug? If so, is it a bug in pycodestyle or autopep8? Are there any error codes I can ignore to prevent this behavior? If I ignore E127 and E128 it also stops indenting all other cases.
I know that if I use brackets instead of backslash it will work correctly, however, there is an existing repository that uses backslashes in some places which I do not want to change.
UPD. Adding another example from pep8 (https://www.python.org/dev/peps/pep-0008/#maximum-line-length)
Backslashes may still be appropriate at times. For example, long, multiple with-statements cannot use implicit continuation, so backslashes are acceptable:
with open('/path/to/some/file/you/want/to/read') as file_1, \ open('/path/to/some/file/being/written', 'w') as file_2: file_2.write(file_1.read()) ```
autopep8 does not align this example correctly, too.