Merge pull request #965 from IvanReznikov/3.2.0-list-typing-fix

minor typing change to handle list typing
This commit is contained in:
Leon 2022-12-29 10:22:17 +00:00 committed by GitHub
commit dd0c7ca75e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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