Skip to content

Commit 461fcbe

Browse files
fixing mypy issue
1 parent e7d5339 commit 461fcbe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

py/selenium/webdriver/common/api_request_context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def _parse_set_cookie(header_value: str) -> dict:
214214
return cookie
215215

216216

217-
def _get_set_cookie_headers(resp: urllib3.HTTPResponse) -> list[str]:
217+
def _get_set_cookie_headers(resp: urllib3.BaseHTTPResponse) -> list[str]:
218218
"""Extract all Set-Cookie header values from a urllib3 response.
219219
220220
Args:
@@ -392,7 +392,7 @@ def _append_params(self, url: str, kwargs: dict[str, Any]) -> str:
392392

393393
def _execute_request(
394394
self, method: str, url: str, headers: dict[str, str], body: bytes | None, kwargs: dict[str, Any]
395-
) -> urllib3.HTTPResponse:
395+
) -> urllib3.BaseHTTPResponse:
396396
"""Execute the HTTP request via urllib3."""
397397
timeout = kwargs.get("timeout", self._timeout)
398398
max_redirects = kwargs.get("max_redirects", self._max_redirects)
@@ -418,7 +418,7 @@ def _execute_request(
418418
preload_content=True,
419419
)
420420

421-
def _build_response(self, resp: urllib3.HTTPResponse, url: str) -> APIResponse:
421+
def _build_response(self, resp: urllib3.BaseHTTPResponse, url: str) -> APIResponse:
422422
"""Build an APIResponse from a urllib3 response."""
423423
# Merge duplicate headers per RFC 7230 §3.2.2 (combine with ", ")
424424
resp_headers: dict[str, str] = {}

0 commit comments

Comments
 (0)