minor typing change to handle list typing

This commit is contained in:
Ivan Reznikov 2022-12-29 02:47:58 +04:00
parent 93fef62d50
commit 88f70fea07
No known key found for this signature in database
GPG Key ID: 202F088F34AB7363
1 changed files with 2 additions and 1 deletions

View File

@ -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