From b059247f1aa9d25787d490e79115daa4a1618af6 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 13 May 2026 19:59:33 +0200 Subject: [PATCH] Fix types for new requests release. --- plugins/module_utils/_api/transport/unixconn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/_api/transport/unixconn.py b/plugins/module_utils/_api/transport/unixconn.py index 58c6d728..8ff87ddb 100644 --- a/plugins/module_utils/_api/transport/unixconn.py +++ b/plugins/module_utils/_api/transport/unixconn.py @@ -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