-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
E-easyAn easy issue to implement or PR to reviewAn easy issue to implement or PR to reviewI-defectSomething is not working as intendedSomething is not working as intended
Description
What happened?
mypy (1.4.1) is erroring on a incompatible type for ActionChains(driver)
As far as I can tell ActionChains
should allow for all of the WebDriver
subclasses not just a subset, shouldn't it?
How can we reproduce the issue?
from selenium.webdriver.remote.webdriver import WebDriver
driver: WebDriver
ActionChains(driver)
Relevant log output
Argument 1 to "ActionChains" has incompatible type "selenium.webdriver.remote.webdriver.WebDriver"; expected "selenium.webdriver.chrome.webdriver.WebDriver | selenium.webdriver.firefox.webdriver.WebDriver | selenium.webdriver.safari.webdriver.WebDriver | selenium.webdriver.ie.webdriver.WebDriver | selenium.webdriver.edge.webdriver.WebDriver" [arg-type]
### Operating System
macOS
### Selenium version
4.11.2
### What are the browser(s) and version(s) where you see this issue?
n/a
### What are the browser driver(s) and version(s) where you see this issue?
n/a
### Are you using Selenium Grid?
_No response_
nsoranzo, slawomir-kubiak and M1troll
Metadata
Metadata
Assignees
Labels
E-easyAn easy issue to implement or PR to reviewAn easy issue to implement or PR to reviewI-defectSomething is not working as intendedSomething is not working as intended