1616# under the License.
1717
1818
19- from typing import Any , Dict , List , Optional , Union
19+ from typing import Any , Optional , Union
2020
2121from selenium .webdriver .remote .command import Command
2222
@@ -41,7 +41,7 @@ def __init__(
4141 mouse = mouse or PointerInput (interaction .POINTER_MOUSE , "mouse" )
4242 keyboard = keyboard or KeyInput (interaction .KEY )
4343 wheel = wheel or WheelInput (interaction .WHEEL )
44- self .devices : List [Union [PointerInput , KeyInput , WheelInput ]] = [mouse , keyboard , wheel ]
44+ self .devices : list [Union [PointerInput , KeyInput , WheelInput ]] = [mouse , keyboard , wheel ]
4545 self ._key_action = KeyActions (keyboard )
4646 self ._pointer_action = PointerActions (mouse , duration = duration )
4747 self ._wheel_action = WheelActions (wheel )
@@ -160,7 +160,7 @@ def perform(self) -> None:
160160 >>> el = driver.find_element(id: "some_id")
161161 >>> action_builder.click(el).pause(keyboard).pause(keyboard).pause(keyboard).send_keys("keys").perform()
162162 """
163- enc : Dict [str , List [Any ]] = {"actions" : []}
163+ enc : dict [str , list [Any ]] = {"actions" : []}
164164 for device in self .devices :
165165 encoded = device .encode ()
166166 if encoded ["actions" ]:
0 commit comments