Skip to content

Commit a1f805f

Browse files
jnhyperiondiemol
andauthored
fix typing bug (#11735)
Co-authored-by: Diego Molina <[email protected]>
1 parent 1637d36 commit a1f805f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/selenium/webdriver/remote/webelement.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from base64 import encodebytes
2626
from hashlib import md5 as md5_hash
2727
from io import BytesIO
28+
from typing import List
2829

2930
from selenium.common.exceptions import JavascriptException
3031
from selenium.common.exceptions import WebDriverException
@@ -424,7 +425,7 @@ def find_element(self, by=By.ID, value=None) -> WebElement:
424425

425426
return self._execute(Command.FIND_CHILD_ELEMENT, {"using": by, "value": value})["value"]
426427

427-
def find_elements(self, by=By.ID, value=None) -> list[WebElement]:
428+
def find_elements(self, by=By.ID, value=None) -> List[WebElement]:
428429
"""Find elements given a By strategy and locator.
429430
430431
:Usage:

0 commit comments

Comments
 (0)