diff --git a/py/selenium/webdriver/chromium/service.py b/py/selenium/webdriver/chromium/service.py index d8bdc2cffc011..4f6acaf24bc82 100644 --- a/py/selenium/webdriver/chromium/service.py +++ b/py/selenium/webdriver/chromium/service.py @@ -30,7 +30,7 @@ def __init__( executable_path: str, port: int = 0, service_args: typing.Optional[List[str]] = None, - log_path: typing.Optional[typing.Any[str, int]] = None, + log_path: typing.Optional[typing.Union[str, int]] = None, env: typing.Optional[typing.Dict[typing.Any, typing.Any]] = None, start_error_message: str = "", ):