method
Return a parametrized wrapper around the dtype type.
New in version 1.22.
A parametrized dtype type.
See also
Type hinting generics in standard collections.
>>> import numpy as np
>>> np.dtype[np.int64] numpy.dtype[numpy.int64]
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.dtype.__class_getitem__.html