@@ -230,7 +230,7 @@ def _to_dict(lbs, elems):
230230 else :
231231 return _to_dict (labels , results )
232232
233- def _fix_retina_element (self , ele ) :
233+ def _fix_retina_element (self , ele : cv2find . Box ) -> cv2find . Box :
234234 if not is_retina ():
235235 return ele
236236
@@ -1831,7 +1831,7 @@ def sleep(self, interval: int) -> None:
18311831
18321832 @if_windows_os
18331833 def connect_to_app (
1834- self , backend = Backend .WIN_32 , timeout = 60000 , ** connection_selectors
1834+ self , backend = Backend .WIN_32 , timeout : int = 60000 , ** connection_selectors : dict
18351835 ) -> "Application" :
18361836 """
18371837 Connects to an instance of an open application.
@@ -1853,7 +1853,9 @@ def connect_to_app(
18531853 return self .app
18541854
18551855 @if_app_connected
1856- def find_app_window (self , waiting_time = 10000 , ** selectors ) -> "WindowSpecification" :
1856+ def find_app_window (
1857+ self , waiting_time : int = 10000 , ** selectors : dict
1858+ ) -> "WindowSpecification" :
18571859 """
18581860 Find a window of the currently connected application using the available selectors.
18591861
@@ -1874,8 +1876,8 @@ def find_app_window(self, waiting_time=10000, **selectors) -> "WindowSpecificati
18741876 def find_app_element (
18751877 self ,
18761878 from_parent_window : "WindowSpecification" = None ,
1877- waiting_time = 10000 ,
1878- ** selectors ,
1879+ waiting_time : int = 10000 ,
1880+ ** selectors : dict ,
18791881 ) -> "WindowSpecification" :
18801882 """
18811883 Find a element of the currently connected application using the available selectors.
0 commit comments