Skip to content

Commit 85893f5

Browse files
committed
[py] linter expects trailing commas
1 parent d000585 commit 85893f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

py/selenium/webdriver/chromium/options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def headless(self) -> bool:
144144
warnings.warn(
145145
"headless property is deprecated, instead check for '--headless' in arguments",
146146
DeprecationWarning,
147-
stacklevel=2
147+
stacklevel=2,
148148
)
149149
return "--headless" in self._arguments
150150

@@ -161,7 +161,7 @@ def headless(self, value: bool) -> None:
161161
warnings.warn(
162162
"headless property is deprecated, instead use add_argument('--headless') or add_argument('--headless=new')",
163163
DeprecationWarning,
164-
stacklevel=2
164+
stacklevel=2,
165165
)
166166
args = {"--headless"}
167167
if value is True:

py/selenium/webdriver/firefox/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def headless(self) -> bool:
109109
warnings.warn(
110110
"headless property is deprecated, instead check for '-headless' in arguments",
111111
DeprecationWarning,
112-
stacklevel=2
112+
stacklevel=2,
113113
)
114114
return "-headless" in self._arguments
115115

0 commit comments

Comments
 (0)