Skip to content

Commit 8c8c344

Browse files
Merge pull request #62 from welli7ngton/mnt/misc_annotation
Mnt/misc and browser annotation
2 parents e9ddca5 + 9f2b50f commit 8c8c344

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

botcity/core/bot.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ def get_element_coords_centered(
786786
# Browser
787787
#########
788788

789-
def browse(self, url, location=0):
789+
def browse(self, url: str, location: int = 0) -> bool:
790790
"""
791791
Invoke the default browser passing an URL
792792
@@ -1771,7 +1771,7 @@ def delete(self, wait: int = 0) -> None:
17711771
# Misc
17721772
######
17731773

1774-
def wait_for_file(self, path, timeout=10000):
1774+
def wait_for_file(self, path: str, timeout: int = 10000) -> bool:
17751775
"""
17761776
Invoke the system handler to open the given file.
17771777
@@ -1793,7 +1793,7 @@ def wait_for_file(self, path, timeout=10000):
17931793
return True
17941794
self.sleep(config.DEFAULT_SLEEP_AFTER_ACTION)
17951795

1796-
def execute(self, file_path):
1796+
def execute(self, file_path: str) -> None:
17971797
"""
17981798
Invoke the system handler to open the given file.
17991799
@@ -1805,7 +1805,7 @@ def execute(self, file_path):
18051805
else:
18061806
subprocess.Popen(file_path.split(" "))
18071807

1808-
def wait(self, interval):
1808+
def wait(self, interval: int) -> None:
18091809
"""
18101810
Wait / Sleep for a given interval.
18111811
@@ -1815,7 +1815,7 @@ def wait(self, interval):
18151815
"""
18161816
time.sleep(interval / 1000.0)
18171817

1818-
def sleep(self, interval):
1818+
def sleep(self, interval: int) -> None:
18191819
"""
18201820
Wait / Sleep for a given interval.
18211821

0 commit comments

Comments
 (0)