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