title: How to specify multiple return types using type-hints
body: <p>I have a function in python that can either return a <code>bool</code> or a <code>list</code>. Is there a way to specify the return types using type hints?</p>
  <p>For example, is this the correct way to do it?</p>
  <pre><code>def foo(id) -&gt; list or bool:
      ...
  </code></pre>