Skip to content

Commit 745389d

Browse files
modified dict and list to take from built in libraries
1 parent 4f92afa commit 745389d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py/selenium/webdriver/common/actions/action_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818

19-
from typing import Any, Dict, List, Optional, Union
19+
from typing import Any, Optional, Union
2020

2121
from 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

Comments
 (0)