title: Type hint for a file or file-like object?
body: <p>Is there any correct type hint to use for a file or file-like object in Python? For example, how would I type-hint the return value of this function?</p>
  <pre><code>def foo() -&gt; ???:
      return open('bar')
  </code></pre>