[ Web Proxy ]
URL:
Viewing: https://numpy.org/doc/stable/reference/generated/../generated/numpy.dtype.__class_getitem__.html [Back]  [Original]

numpy.dtype.__class_getitem__ — NumPy v2.5 Manual
Back to top
Search the docs ...:

numpy.dtype.__class_getitem__#

method

dtype.__class_getitem__(item, /)#

Return a parametrized wrapper around the dtype type.

New in version 1.22.

Returns:
aliastypes.GenericAlias

A parametrized dtype type.

See also

PEP 585

Type hinting generics in standard collections.

Examples

Try it in your browser!
>>> import numpy as np
>>> np.dtype[np.int64]
numpy.dtype[numpy.int64]

Web Proxy Viewer  |  New URL  |  Original Page