Skip to content

Commit a110880

Browse files
committed
mypy fixup
1 parent ddc0469 commit a110880

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/arrays/string_.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -838,13 +838,13 @@ def _cmp_method(self, other, op):
838838
# logical
839839
result = np.zeros(len(self._ndarray), dtype="bool")
840840
result[valid] = op(self._ndarray[valid], other)
841-
result = BooleanArray(result, mask)
841+
res_arr = BooleanArray(result, mask)
842842
if self.dtype.na_value is np.nan:
843843
if op == operator.ne:
844-
return result.to_numpy(np.bool_, na_value=True)
844+
return res_arr.to_numpy(np.bool_, na_value=True)
845845
else:
846-
return result.to_numpy(np.bool_, na_value=False)
847-
return result
846+
return res_arr.to_numpy(np.bool_, na_value=False)
847+
return res_arr
848848

849849
_arith_method = _cmp_method
850850

0 commit comments

Comments
 (0)