minor typing change to handle list typing
This commit is contained in:
parent
93fef62d50
commit
88f70fea07
|
@ -1,5 +1,6 @@
|
|||
from selenium.webdriver.common.by import By
|
||||
import selenium.webdriver.remote.webelement
|
||||
from typing import List
|
||||
|
||||
|
||||
class WebElement(selenium.webdriver.remote.webelement.WebElement):
|
||||
|
@ -9,7 +10,7 @@ class WebElement(selenium.webdriver.remote.webelement.WebElement):
|
|||
|
||||
def children(
|
||||
self, tag=None, recursive=False
|
||||
) -> list[selenium.webdriver.remote.webelement.WebElement]:
|
||||
) -> List[selenium.webdriver.remote.webelement.WebElement]:
|
||||
"""
|
||||
returns direct child elements of current element
|
||||
:param tag: str, if supplied, returns <tag> nodes only
|
||||
|
|
Loading…
Reference in New Issue