@@ -230,7 +230,7 @@ def _to_dict(lbs, elems):
230
230
else :
231
231
return _to_dict (labels , results )
232
232
233
- def _fix_retina_element (self , ele ) :
233
+ def _fix_retina_element (self , ele : cv2find . Box ) -> cv2find . Box :
234
234
if not is_retina ():
235
235
return ele
236
236
@@ -1831,7 +1831,7 @@ def sleep(self, interval: int) -> None:
1831
1831
1832
1832
@if_windows_os
1833
1833
def connect_to_app (
1834
- self , backend = Backend .WIN_32 , timeout = 60000 , ** connection_selectors
1834
+ self , backend : Backend = Backend .WIN_32 , timeout : int = 60000 , ** connection_selectors : dict [ str , Any ]
1835
1835
) -> "Application" :
1836
1836
"""
1837
1837
Connects to an instance of an open application.
@@ -1853,7 +1853,9 @@ def connect_to_app(
1853
1853
return self .app
1854
1854
1855
1855
@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 [str , Any ]
1858
+ ) -> "WindowSpecification" :
1857
1859
"""
1858
1860
Find a window of the currently connected application using the available selectors.
1859
1861
@@ -1874,8 +1876,8 @@ def find_app_window(self, waiting_time=10000, **selectors) -> "WindowSpecificati
1874
1876
def find_app_element (
1875
1877
self ,
1876
1878
from_parent_window : "WindowSpecification" = None ,
1877
- waiting_time = 10000 ,
1878
- ** selectors ,
1879
+ waiting_time : int = 10000 ,
1880
+ ** selectors : dict [ str , Any ]
1879
1881
) -> "WindowSpecification" :
1880
1882
"""
1881
1883
Find a element of the currently connected application using the available selectors.
0 commit comments