title: How can I find Python methods without return statements?
body: <p>I really like it when methods of objects, which modify the objects property, return <code>self</code> so that you can chain method calls. For example:</p>
  
  <pre><code>boundingBox.grow(0.05).shift(x=1.3)
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>boundingBox.grow(0.05)
  boundingBox.shift(x=1.3)
  </code></pre>
  
  <p>I would like to search the code of my old projects to adjust this pattern. How can I find methods which don't have a return statement?</p>
  
  <p>Ideally, I would like to let a program run over a folder. The program searches Python files, looks for classes, examines their methods and searches return statements. If no return statement is there, it outputs the filename, the name of the class and the name of the method.</p>