Skip to content

Commit 2e82f75

Browse files
committed
MNT: fix last remaining direct use of npy_promotion_state
1 parent bdc63a0 commit 2e82f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/_core/src/multiarray/multiarraymodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3493,7 +3493,7 @@ array_can_cast_safely(PyObject *NPY_UNUSED(self),
34933493
* TODO: `PyArray_IsScalar` should not be required for new dtypes.
34943494
* weak-promotion branch is in practice identical to dtype one.
34953495
*/
3496-
if (npy_promotion_state == NPY_USE_WEAK_PROMOTION) {
3496+
if (get_npy_promotion_state() == NPY_USE_WEAK_PROMOTION) {
34973497
PyObject *descr = PyObject_GetAttr(from_obj, npy_ma_str_dtype);
34983498
if (descr == NULL) {
34993499
goto finish;

0 commit comments

Comments
 (0)