Pattern: Malformed indent for continuation line
Issue: -
Continuation lines should not be indented at the same level as the next logical line. Instead, they should be indented to one more level so as to distinguish them from the next line.
In this example the second line is indented at the same level as the line below it. This makes it difficult to tell what is in the if
block and what is a part of the boolean expression.
if user is not None and user.is_admin or \
user.name == 'Grant':
blah = 'yeahnah'
if user is not None and user.is_admin or \
user.name == 'Grant':
blah = 'yeahnah'