Skip to content

Commit df8f501

Browse files
Fixing parameter type in control_key method
1 parent db784b1 commit df8f501

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

botcity/core/bot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import random
66
import subprocess
77
import time
8+
from typing import Union
89
import webbrowser
910

1011
import pyautogui
@@ -1276,7 +1277,7 @@ def control_s(self, wait=0):
12761277
"""
12771278
self.control_key(key_to_press='s', wait=wait)
12781279

1279-
def control_key(self, key_to_press: str | Key, wait=0):
1280+
def control_key(self, key_to_press: Union[str, Key], wait=0):
12801281
"""
12811282
Press CTRL and one more simple key to perform a keyboard shortcut
12821283

0 commit comments

Comments
 (0)