From 2b5999625744adccf2a0ad30cdd18d503044603b Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Tue, 9 Apr 2024 11:29:00 +0100 Subject: [PATCH] Add type hints for selenium.webdriver.remote.webdriver.WebDriver.__init__ (#13775) Co-authored-by: Diego Molina --- 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.