@@ -282,7 +282,7 @@ def find(
282282 waiting_time : int = 10000 ,
283283 best : bool = True ,
284284 grayscale : bool = False ,
285- ) -> Union [Tuple [ int , int , int , int ] , None ]:
285+ ) -> Union [cv2find . Box , None ]:
286286 """
287287 Find an element defined by label on screen until a timeout happens.
288288
@@ -332,7 +332,7 @@ def find_until(
332332 waiting_time : int = 10000 ,
333333 best : bool = True ,
334334 grayscale : bool = False ,
335- ) -> Union [Tuple [ int , int , int , int ] , None ]:
335+ ) -> Union [cv2find . Box , None ]:
336336 """
337337 Find an element defined by label on screen until a timeout happens.
338338
@@ -522,7 +522,7 @@ def find_text(
522522 matching : float = 0.9 ,
523523 waiting_time : int = 10000 ,
524524 best : bool = True ,
525- ) -> Union [Tuple [ int , int , int , int ] , None ]:
525+ ) -> Union [cv2find . Box , None ]:
526526 """
527527 Find an element defined by label on screen until a timeout happens.
528528
@@ -592,7 +592,7 @@ def terminate_process(self, process: Process) -> None:
592592 if process .is_running ():
593593 raise Exception ("Terminate process failed" )
594594
595- def get_last_element (self ) -> Tuple [ int , int , int , int ] :
595+ def get_last_element (self ) -> cv2find . Box :
596596 """
597597 Return the last element found.
598598
0 commit comments