Skip to content

Commit bfb36ed

Browse files
Refactor condition with parentheses instead of slash
1 parent e31dfe1 commit bfb36ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/lib.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,8 @@ def array_equivalent_object(left: object[:], right: object[:]) -> bool:
585585
elif cnp.PyArray_IsAnyScalar(x) != cnp.PyArray_IsAnyScalar(y):
586586
return False
587587
# Check if arrays have the same type
588-
elif not (cnp.PyArray_IsPythonScalar(x) or cnp.PyArray_IsPythonScalar(y)) \
589-
and not (isinstance(x, type(y)) or isinstance(y, type(x))):
588+
elif (not (cnp.PyArray_IsPythonScalar(x) or cnp.PyArray_IsPythonScalar(y))
589+
and not (isinstance(x, type(y)) or isinstance(y, type(x)))):
590590
return False
591591
elif not (PyObject_RichCompareBool(x, y, Py_EQ) or
592592
(x is None or is_nan(x)) and (y is None or is_nan(y))):

0 commit comments

Comments
 (0)