@@ -32,7 +32,7 @@ from pandas._libs.util cimport (
32
32
33
33
@ cython.wraparound (False )
34
34
@ cython.boundscheck (False )
35
- def scalar_compare (object[:] values , object val , object op ):
35
+ def scalar_compare (object[:] values , object val , object op ) -> ndarray :
36
36
"""
37
37
Compare each element of `values` array with the scalar `val`, with
38
38
the comparison operation described by `op`.
@@ -114,7 +114,7 @@ def scalar_compare(object[:] values, object val, object op):
114
114
115
115
@ cython.wraparound (False )
116
116
@ 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 :
118
118
"""
119
119
Compare the elements of `left` with the elements of `right` pointwise ,
120
120
with the comparison operation described by `op`.
@@ -180,7 +180,7 @@ def vec_compare(ndarray[object] left, ndarray[object] right, object op):
180
180
181
181
@ cython.wraparound (False )
182
182
@ cython.boundscheck (False )
183
- def scalar_binop (object[:] values , object val , object op ):
183
+ def scalar_binop (object[:] values , object val , object op ) -> ndarray :
184
184
"""
185
185
Apply the given binary operator `op` between each element of the array
186
186
`values` and the scalar `val`.
@@ -217,7 +217,7 @@ def scalar_binop(object[:] values, object val, object op):
217
217
218
218
@ cython.wraparound (False )
219
219
@ cython.boundscheck (False )
220
- def vec_binop (object[:] left , object[:] right , object op ):
220
+ def vec_binop (object[:] left , object[:] right , object op ) -> ndarray :
221
221
"""
222
222
Apply the given binary operator `op` pointwise to the elements of
223
223
arrays `left` and `right`.
0 commit comments