title: What is the correct way in python to annotate a path with type hints?
body: <p>What is the proper way to annotate this simple utility function in python3 that reads from a file?
  It should accept <code>pathlib.Path</code> objects as well as any other common way of passing a path.</p>
  
  <pre class="lang-py prettyprint-override"><code>def read_json(path: &lt;TYPE HINT&gt;):
      with open(path, 'rb') as f:
          data = json.load(f)
      return data
  </code></pre>
  
  <p>It seems to me as if this topic is in flux and I couldn't find a good place where this information was collected. I am interested in how to handle this in python 3.6, 3.7 and 3.8. </p>