Skip to content

Commit 817c9e4

Browse files
sebergngoldbaum
andcommitted
STY: Apply style suggestion from review
Co-authored-by: Nathan Goldbaum <[email protected]>
1 parent 6347369 commit 817c9e4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

numpy/_core/src/umath/stringdtype_ufuncs.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,9 +1028,9 @@ all_strings_promoter(PyObject *NPY_UNUSED(ufunc),
10281028
PyArray_DTypeMeta *const signature[],
10291029
PyArray_DTypeMeta *new_op_dtypes[])
10301030
{
1031-
if (op_dtypes[0] != &PyArray_StringDType &&
1032-
op_dtypes[1] != &PyArray_StringDType &&
1033-
op_dtypes[2] != &PyArray_StringDType) {
1031+
if ((op_dtypes[0] != &PyArray_StringDType &&
1032+
op_dtypes[1] != &PyArray_StringDType &&
1033+
op_dtypes[2] != &PyArray_StringDType)) {
10341034
/*
10351035
* This promoter was triggered with only unicode arguments, so use
10361036
* unicode. This can happen due to `dtype=` support which sets the
@@ -1041,9 +1041,9 @@ all_strings_promoter(PyObject *NPY_UNUSED(ufunc),
10411041
new_op_dtypes[2] = NPY_DT_NewRef(&PyArray_UnicodeDType);
10421042
return 0;
10431043
}
1044-
if (signature[0] == &PyArray_UnicodeDType &&
1045-
signature[1] == &PyArray_UnicodeDType &&
1046-
signature[2] == &PyArray_UnicodeDType) {
1044+
if ((signature[0] == &PyArray_UnicodeDType &&
1045+
signature[1] == &PyArray_UnicodeDType &&
1046+
signature[2] == &PyArray_UnicodeDType)) {
10471047
/* Unicode forced, but didn't override a string input: invalid */
10481048
return -1;
10491049
}

0 commit comments

Comments
 (0)