summaryrefslogtreecommitdiff
path: root/numpy/array_api/_typing.py
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2022-02-02 22:46:17 +0200
committerGitHub <noreply@github.com>2022-02-02 13:46:17 -0700
commitac87f071f5fcf05b6a28bcf4ba7eb965daa6959a (patch)
tree105af75c0243e456d31a7e4135c328ccea7f4cc8 /numpy/array_api/_typing.py
parent273b7fe0a94ae3a8ac96f4b34a396a8d3584c210 (diff)
downloadnumpy-ac87f071f5fcf05b6a28bcf4ba7eb965daa6959a.tar.gz
ENH: review return values for PyArray_DescrNew (#20960)
* ENH: review return value from PyArray_DescrNew* calls * BUG: remove unused variable * BUG: typo * Update numpy/core/src/multiarray/methods.c Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> * Update numpy/core/src/multiarray/methods.c Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> * Update numpy/core/src/multiarray/getset.c Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> * Update numpy/core/src/multiarray/methods.c Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> * fixes from review * Update numpy/core/src/umath/ufunc_type_resolution.c Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> * move check to internal function * remove check * Remove unnecessary dealloc The dealloc is now part of the Py_DECREF(ret) and handled there. Doing it here would decref it twice. * MAINT: Remove custom error message (and small cleanup) It is probably not good to call PyObject_GetIter() if dtype is NULL and an error is already in progress... (If we check for it, lets try to do it right.) * Fixup DescrNewFromType `DescrNewFromType` cannot fail in most cases, but if it does, DescrNew does not accept NULL as input. Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy/array_api/_typing.py')
0 files changed, 0 insertions, 0 deletions