Skip to content

Commit

Permalink
Adjusting 'type_keys' return type
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-voltarelli authored Jan 16, 2025
1 parent aed0bf1 commit 9f29ab0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions botcity/core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ def key_right(self, wait: int = 0) -> None:
delay = max(0, wait or config.DEFAULT_SLEEP_AFTER_ACTION)
self.sleep(delay)

def key_enter(self, wait: int = 0):
def key_enter(self, wait: int = 0) -> None:
"""
Press key Enter
Expand Down Expand Up @@ -1351,7 +1351,7 @@ def type_keys_with_interval(self, interval: int, keys: List) -> None:
self._kb_controller.release(key)
self.sleep(interval)

def type_keys(self, keys: List):
def type_keys(self, keys: List) -> None:
"""
Press a sequence of keys. Hold the keys in the specific order and releases them.
Expand Down Expand Up @@ -1548,10 +1548,10 @@ def control_end(self, wait: int = 0) -> None:

def control_home(self, wait: int = 0) -> None:
"""
press keys CTRL+home
Press keys CTRL+Home
args:
wait (int, optional): wait interval (ms) after task
Args:
wait (int, optional): Wait interval (ms) after task
"""
self.control_key(key_to_press=Key.home, wait=wait)
Expand Down

0 comments on commit 9f29ab0

Please sign in to comment.