title: Numpy type hints in Python (PEP 484)
body: <p>I would like to add type hints to a method that takes a numpy array as an input, and returns a string. This numpy array contains floats so I tried:</p>
  
  <pre><code>import numpy as np
  def foo(array: np.ndarray[np.float64]) -&gt; str:
  </code></pre>
  
  <p>But it will not work due to a <code>TypeError: 'type' object is not subscriptable</code>.</p>
  
  <p>I found <a href="https://github.com/numpy/numpy-stubs" rel="noreferrer">this</a> but could not follow the discussions!</p>