2727class ChromiumOptions (ArgOptions ):
2828 KEY = "goog:chromeOptions"
2929
30- def __init__ (self ):
30+ def __init__ (self ) -> None :
3131 super (ChromiumOptions , self ).__init__ ()
3232 self ._binary_location = ''
3333 self ._extension_files = []
@@ -43,7 +43,7 @@ def binary_location(self) -> str:
4343 return self ._binary_location
4444
4545 @binary_location .setter
46- def binary_location (self , value : str ):
46+ def binary_location (self , value : str ) -> NoReturn :
4747 """
4848 Allows you to set where the chromium binary lives
4949 :Args:
@@ -52,14 +52,14 @@ def binary_location(self, value: str):
5252 self ._binary_location = value
5353
5454 @property
55- def debugger_address (self : str ):
55+ def debugger_address (self : str ) -> str :
5656 """
5757 :Returns: The address of the remote devtools instance
5858 """
5959 return self ._debugger_address
6060
6161 @debugger_address .setter
62- def debugger_address (self , value : str ):
62+ def debugger_address (self , value : str ) -> NoReturn :
6363 """
6464 Allows you to set the address of the remote devtools instance
6565 that the ChromeDriver instance will try to connect to during an
@@ -122,7 +122,7 @@ def experimental_options(self) -> dict:
122122 """
123123 return self ._experimental_options
124124
125- def add_experimental_option (self , name : str , value : Union [str , int , dict , List [str ]]):
125+ def add_experimental_option (self , name : str , value : Union [str , int , dict , List [str ]]) -> NoReturn :
126126 """
127127 Adds an experimental option which is passed to chromium.
128128
@@ -142,7 +142,7 @@ def headless(self) -> bool:
142142 return '--headless' in self ._arguments
143143
144144 @headless .setter
145- def headless (self , value : bool ):
145+ def headless (self , value : bool ) -> NoReturn :
146146 """
147147 Sets the headless argument
148148 :Args:
0 commit comments