@@ -32,7 +32,7 @@ from pandas._libs.util cimport (
3232
3333@ cython.wraparound (False )
3434@ cython.boundscheck (False )
35- def scalar_compare (object[:] values , object val , object op ):
35+ def scalar_compare (object[:] values , object val , object op ) -> ndarray :
3636 """
3737 Compare each element of `values` array with the scalar `val`, with
3838 the comparison operation described by `op`.
@@ -114,7 +114,7 @@ def scalar_compare(object[:] values, object val, object op):
114114
115115@ cython.wraparound (False )
116116@ cython.boundscheck (False )
117- def vec_compare (ndarray[object] left , ndarray[object] right , object op ):
117+ def vec_compare (ndarray[object] left , ndarray[object] right , object op ) -> ndarray :
118118 """
119119 Compare the elements of `left` with the elements of `right` pointwise ,
120120 with the comparison operation described by `op`.
@@ -180,7 +180,7 @@ def vec_compare(ndarray[object] left, ndarray[object] right, object op):
180180
181181@ cython.wraparound (False )
182182@ cython.boundscheck (False )
183- def scalar_binop (object[:] values , object val , object op ):
183+ def scalar_binop (object[:] values , object val , object op ) -> ndarray :
184184 """
185185 Apply the given binary operator `op` between each element of the array
186186 `values` and the scalar `val`.
@@ -217,7 +217,7 @@ def scalar_binop(object[:] values, object val, object op):
217217
218218@ cython.wraparound (False )
219219@ cython.boundscheck (False )
220- def vec_binop (object[:] left , object[:] right , object op ):
220+ def vec_binop (object[:] left , object[:] right , object op ) -> ndarray :
221221 """
222222 Apply the given binary operator `op` pointwise to the elements of
223223 arrays `left` and `right`.
0 commit comments