Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing #12469 - incompatible types error in mypy #12477

Merged
merged 3 commits into from
Aug 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions py/selenium/webdriver/common/action_chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,7 @@
from .utils import keys_to_typing

if TYPE_CHECKING:
from selenium.webdriver import Chrome
from selenium.webdriver import Edge
from selenium.webdriver import Firefox
from selenium.webdriver import Ie
from selenium.webdriver import Safari

AnyDriver = Union[Chrome, Firefox, Safari, Ie, Edge]
from selenium.webdriver.remote.webdriver import WebDriver

AnyDevice = Union[PointerInput, KeyInput, WheelInput]

Expand Down Expand Up @@ -77,7 +71,7 @@ class ActionChains:
another.
"""

def __init__(self, driver: AnyDriver, duration: int = 250, devices: Optional[List[AnyDevice]] = None) -> None:
def __init__(self, driver: WebDriver, duration: int = 250, devices: Optional[List[AnyDevice]] = None) -> None:
"""Creates a new ActionChains.

:Args:
Expand Down