title: PEP 8: comparison to True should be 'if cond is True:' or 'if cond:'
body: <p>PyCharm is throwing a warning when I do np.where(temp == True)</p>
  
  <p>My full code:</p>
  
  <pre><code>from numpy import where, array
  
  a = array([[0.4682], [0.5318]])
  b = array([[0.29828851, 0., 0.28676873, 0., 0., 0., 0., 0.28801431, 0., 0., 0.71283046, 0.],
            [0.70171149, 0., 0.71323127, 0., 0., 0., 0., 0.71198569, 0., 0., 0.28716954, 0.]])
  
  temp = b &gt; 1.1*a
  pos = where(temp == True)
  
  print(pos) 
  </code></pre>
  
  <p>The code does not work as expected if I change temp == True to temp is True as suggested in other post. </p>
  
  <p>How should this warning be resolved?</p>
  
  <p>where(temp) works. Thanks a lot !! @Joao Vitorino 
  Thanks for the explanation, @jedwards. It helps. </p>