summaryrefslogtreecommitdiff
path: root/numpy/lib/arraypad.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-10-07 23:04:17 -0500
committerSebastian Berg <sebastian@sipsolutions.net>2020-10-07 23:11:12 -0500
commit980d52eeaf0498f49dfef61f2a6cba6b78100d83 (patch)
tree5a5dadc19a78c5c0d5396e85374bf831b0fa4d48 /numpy/lib/arraypad.py
parent382758355998951cea2b9f6ad1fb83e7dc4c3a02 (diff)
downloadnumpy-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/arraypad.py')
0 files changed, 0 insertions, 0 deletions