diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-10-07 23:04:17 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-10-07 23:11:12 -0500 |
commit | 980d52eeaf0498f49dfef61f2a6cba6b78100d83 (patch) | |
tree | 5a5dadc19a78c5c0d5396e85374bf831b0fa4d48 /numpy/lib/function_base.py | |
parent | 382758355998951cea2b9f6ad1fb83e7dc4c3a02 (diff) | |
download | numpy-980d52eeaf0498f49dfef61f2a6cba6b78100d83.tar.gz |
BUG: Accept legacy user-dtypes if not isinstance(dtype.type, np.generic)
These are now accepted (as a no-op) in `_PyArray_MapPyTypeToDType`
retaining previous behaviour (as lookup for a registered user-type
was only done if the instance check suceeded.
Retain the check for future user DTypes, as it sould be a conscience
choice to relax this requirement.
Diffstat (limited to 'numpy/lib/function_base.py')
0 files changed, 0 insertions, 0 deletions