title: Specific type annotation for NumPy ndarray using mypy
body: <p>Support for type annotations was added in NumPy 1.20.
  I'm trying to figure out how to tell mypy that an array is filled with elements of a particular type, the annotation <code>np.ndarray[np.dcomplex]</code> gives the mypy error <code>&quot;ndarray&quot; expects no type arguments, but 1 given</code>.</p>
  <p>EDIT: This question is different from <a href="https://stackoverflow.com/questions/35673895/type-hinting-annotation-pep-484-for-numpy-ndarray">Type hinting / annotation (PEP 484) for numpy.ndarray</a> as that question was asked 4 years ago when there wasn't any official support for type hinting. I'm asking for what is the <em>official</em>  way to do this, now that type hinting is actually natively supported by numpy 1.20. The documentation at <a href="https://numpy.org/doc/stable/reference/typing.html#module-numpy.typing" rel="noreferrer">https://numpy.org/doc/stable/reference/typing.html#module-numpy.typing</a> that the top answer there points towards only seems to say things you <em>shouldn't</em> do with type hinting instead of explaining what you <em>should</em> be doing.</p>