Skip to content

Commit 493326f

Browse files
committed
linting
1 parent 110da30 commit 493326f

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

py/selenium/webdriver/common/bidi/network.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ def _on_request(self, event_name, callback):
129129
event_name (str): The event to subscribe to.
130130
callback (function): The callback function to execute on event.
131131
Takes Request object as argument.
132+
133+
Returns:
134+
-------
135+
int : callback id
132136
"""
133137

134138
event = NetworkEvent(event_name)
@@ -225,6 +229,10 @@ def add_auth_handler(self, username, password):
225229
----------
226230
username (str): The username to authenticate with.
227231
password (str): The password to authenticate with.
232+
233+
Returns:
234+
-------
235+
int : callback id
228236
"""
229237
event = "auth_required"
230238

@@ -234,7 +242,14 @@ def _callback(request):
234242
return self.add_request_handler(event, _callback)
235243

236244
def _continue_with_auth(self, request, username, password):
237-
"""Continue with authentication."""
245+
"""Continue with authentication.
246+
247+
Parameters:
248+
----------
249+
request (Request): The request to continue with.
250+
username (str): The username to authenticate with.
251+
password (str): The password to authenticate with.
252+
"""
238253

239254
params = {}
240255
params["request"] = request.request_id

py/test/selenium/webdriver/common/bidi_network_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from selenium.webdriver.common.bidi.network import Request
2121
from selenium.webdriver.common.by import By
2222

23-
2423
# @pytest.mark.xfail_safari
2524
# def test_network_initialized(driver):
2625
# assert driver.network is not None

0 commit comments

Comments
 (0)