diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-10-07 22:43:26 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-10-07 23:11:12 -0500 |
commit | 6681c87e08a4e9bbd4d7a2aa7fb49e1f5852e359 (patch) | |
tree | c23f1cbe890713b357c0fdd26c219c84f250b89b /numpy/lib/function_base.py | |
parent | 980d52eeaf0498f49dfef61f2a6cba6b78100d83 (diff) | |
download | numpy-6681c87e08a4e9bbd4d7a2aa7fb49e1f5852e359.tar.gz |
BUG: Fix usertype typenumber during registration
This slightly rearranges the code to ensure that the type number
set for a user type is -1 (invalid) if it does not succeed.
(This should be unnecessary, but might be relevant in the unlikely
event that a usertype does not check the error return correctly.)
Diffstat (limited to 'numpy/lib/function_base.py')
0 files changed, 0 insertions, 0 deletions