From fb95163f97950fc17313646870a5864955d972f2 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Wed, 3 Apr 2024 19:35:41 +0100 Subject: [PATCH] Add type hints for selenium.webdriver.remote.webdriver.WebDriver.__init__ --- py/selenium/webdriver/remote/webdriver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/py/selenium/webdriver/remote/webdriver.py b/py/selenium/webdriver/remote/webdriver.py index 902af1af1f019..ca71978ff66fb 100644 --- a/py/selenium/webdriver/remote/webdriver.py +++ b/py/selenium/webdriver/remote/webdriver.py @@ -163,10 +163,10 @@ class WebDriver(BaseWebDriver): def __init__( self, - command_executor="http://127.0.0.1:4444", - keep_alive=True, - file_detector=None, - options: Union[BaseOptions, List[BaseOptions]] = None, + command_executor: Union[str, RemoteConnection] = "http://127.0.0.1:4444", + keep_alive: bool = True, + file_detector: Optional[FileDetector] = None, + options: Optional[Union[BaseOptions, List[BaseOptions]]] = None, ) -> None: """Create a new driver that will issue commands using the wire protocol.