Skip to content

Commit 2b59996

Browse files
Add type hints for selenium.webdriver.remote.webdriver.WebDriver.__init__ (#13775)
Co-authored-by: Diego Molina <[email protected]>
1 parent b867008 commit 2b59996

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

py/selenium/webdriver/remote/webdriver.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ class WebDriver(BaseWebDriver):
163163

164164
def __init__(
165165
self,
166-
command_executor="http://127.0.0.1:4444",
167-
keep_alive=True,
168-
file_detector=None,
169-
options: Union[BaseOptions, List[BaseOptions]] = None,
166+
command_executor: Union[str, RemoteConnection] = "http://127.0.0.1:4444",
167+
keep_alive: bool = True,
168+
file_detector: Optional[FileDetector] = None,
169+
options: Optional[Union[BaseOptions, List[BaseOptions]]] = None,
170170
) -> None:
171171
"""Create a new driver that will issue commands using the wire
172172
protocol.

0 commit comments

Comments
 (0)