summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests/test_array_object.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-01-31 00:16:15 -0800
committerSebastian Berg <sebastian@sipsolutions.net>2020-03-18 17:29:34 -0500
commit1809a0fded50a877b20e1d4b2e2a6583dc3158d7 (patch)
treec141e5c1a2aa67fc8aab4fc045381ab3e73da321 /numpy/array_api/tests/test_array_object.py
parent965b41d418e6100c1afae0b6f818a7ef152bc25d (diff)
downloadnumpy-1809a0fded50a877b20e1d4b2e2a6583dc3158d7.tar.gz
API: Create Preliminary DTypeMeta class and np.dtype subclasses
This makes all dtypes being subclasses of a: class DType(np.dtype): is_abstract = False is_flexible = False % True for void, strings, and datetimes singleton = prototype_dtype_instance # other information defined on the singleton currently subclass of np.dtype. Right now this happens by replacing the Type field of of the singleton instance. This is valid for types/objects not created in python (not HeapTypes). It is necessary to have this functionality for continuing support of user defined legacy dtypes.
Diffstat (limited to 'numpy/array_api/tests/test_array_object.py')
0 files changed, 0 insertions, 0 deletions