Skip to content

Commit 5e500da

Browse files
ENH: Adjusting parameters type
1 parent 6f7a9ee commit 5e500da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

botcity/core/bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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: int = 60000, **connection_selectors: dict
1834+
self, backend: Backend = Backend.WIN_32, timeout: int = 60000, **connection_selectors: dict[str, Any]
18351835
) -> "Application":
18361836
"""
18371837
Connects to an instance of an open application.
@@ -1854,7 +1854,7 @@ def connect_to_app(
18541854

18551855
@if_app_connected
18561856
def find_app_window(
1857-
self, waiting_time: int = 10000, **selectors: dict
1857+
self, waiting_time: int = 10000, **selectors: dict[str, Any]
18581858
) -> "WindowSpecification":
18591859
"""
18601860
Find a window of the currently connected application using the available selectors.
@@ -1877,7 +1877,7 @@ def find_app_element(
18771877
self,
18781878
from_parent_window: "WindowSpecification" = None,
18791879
waiting_time: int = 10000,
1880-
**selectors: dict,
1880+
**selectors: dict[str, Any]
18811881
) -> "WindowSpecification":
18821882
"""
18831883
Find a element of the currently connected application using the available selectors.

0 commit comments

Comments
 (0)