summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2023-02-02 01:54:27 +0100
committerSebastian Berg <sebastianb@nvidia.com>2023-02-02 01:54:27 +0100
commit96389f69e298729a33c2c6ad6bf994d338638d60 (patch)
tree5b79df8724a0d3e86c77f6851d84bf66a2d820e3 /numpy/array_api/_array_object.py
parentb30653165c4a44b40be733217b26ac9a936772a5 (diff)
downloadnumpy-96389f69e298729a33c2c6ad6bf994d338638d60.tar.gz
ENH: Allow trivial pickling of user DType (classes)
This also adds a `_legac` attribute, I am happy to rename it, but I suspect having something like it is useful. Arguably, the best solution would be to give our DTypes a working module+name, but given that we are not there, this seems easy. We could probably check for `__reduce__`, but I am not certain that wouldn't pre-empt successfully already, so this just restores the default for now.
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions