Skip to content

Commit b774850

Browse files
committed
using PR code suggestion for cleaner annotation
1 parent e096077 commit b774850

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

py/selenium/webdriver/chromium/service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ class ChromiumService(service.Service):
3434
:param env: (Optional) Mapping of environment variables for the new process, defaults to `os.environ`.
3535
:param driver_path_env_key: (Optional) Environment variable to use to get the path to the driver executable.
3636
"""
37+
3738
_service_args: list[str]
38-
log_output: Union[Optional[IOBase], Optional[Union[int, IOBase]], Optional[SubprocessStdAlias]]
39+
log_output: Union[None, IOBase, int, SubprocessStdAlias]
3940

4041
def __init__(
4142
self,

py/selenium/webdriver/common/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Service(ABC):
4848
:param driver_path_env_key: (Optional) Environment variable to use to get the path to the driver executable.
4949
"""
5050

51-
log_output: Union[Optional[IOBase], Optional[Union[int, IOBase]], Optional[SubprocessStdAlias]]
51+
log_output: Union[None, IOBase, int, SubprocessStdAlias]
5252

5353
def __init__(
5454
self,

0 commit comments

Comments
 (0)