Skip to content

Commit 5ee2faa

Browse files
authored
Import Remote class from the original source
1 parent 024f74f commit 5ee2faa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

appium/webdriver/webdriver.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Set, Tuple, Type, Union
1616

17-
from selenium import webdriver
1817
from selenium.common.exceptions import (
1918
InvalidArgumentException,
2019
SessionNotCreatedException,
@@ -23,6 +22,8 @@
2322
)
2423
from selenium.webdriver.remote.command import Command as RemoteCommand
2524
from selenium.webdriver.remote.remote_connection import RemoteConnection
25+
# `selenium.webdriver.Remote` could be used instead, but Pyright wouldn't locate the class properly.
26+
from selenium.webdriver.remote.webdriver import WebDriver as Remote
2627
from typing_extensions import Self
2728

2829
from appium.common.logger import logger
@@ -208,7 +209,7 @@ def _get_remote_connection_and_client_config(
208209

209210

210211
class WebDriver(
211-
webdriver.Remote,
212+
Remote,
212213
ActionHelpers,
213214
Activities,
214215
Applications,

0 commit comments

Comments
 (0)