What is the recommended way to break long if statement? (W504 line break after binary operator) : <p>What is currently the recommended way to break long line of if statement with "and" and "or" operators? </p>

<p><strong>1st option</strong> </p>

<p>With the style below <a href="https://www.python.org/dev/peps/pep-0008/#maximum-line-length" rel="noreferrer">(which is from PEP8)</a> with flake8 I'm getting warnings: W504 line break after binary operator:</p>

<pre><code>if (this_is_one_thing and
    that_is_another_thing):
    do_something()
</code></pre>

<p><strong>2nd option</strong> </p>

<pre><code>if (this_is_one_thing
    and that_is_another_thing):
    do_something()
</code></pre>

<p>Now I'm getting the warning W503 line break before binary operator.
The second seems to be in line with <a href="https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator" rel="noreferrer">this recommendation from PEP8</a></p>

<p>I tried to find answer but I'm still unsure. I think maybe using 2nd option and disabling W503 warning will be a way to deal with this problem?</p>
