Fix types for new requests release.

This commit is contained in:
Felix Fontein 2026-05-13 19:59:33 +02:00
parent 9919abf725
commit b059247f1a

View File

@ -117,7 +117,7 @@ class UnixHTTPAdapter(BaseHTTPAdapter):
return pool
def request_url(self, request: PreparedRequest, proxies: Mapping[str, str]) -> str:
def request_url(self, request: PreparedRequest, proxies: Mapping[str, str] | None) -> str:
# The select_proxy utility in requests errors out when the provided URL
# does not have a hostname, like is the case when using a UNIX socket.
# Since proxies are an irrelevant notion in the case of UNIX sockets