
    i|                    P    d dl mZ d dlZddlmZ ej        rddlmZ 	 	 	 dddZdS )    )annotationsN   )Url   )ProxyConfig	proxy_url
Url | Noneproxy_configProxyConfig | Nonedestination_scheme
str | Nonereturnboolc                J    | dS |dk    rdS | j         dk    r|r	|j        rdS dS )a?  
    Returns True if the connection requires an HTTP CONNECT through the proxy.

    :param URL proxy_url:
        URL of the proxy.
    :param ProxyConfig proxy_config:
        Proxy configuration from poolmanager.py
    :param str destination_scheme:
        The scheme of the destination. (i.e https, http, etc)
    NFhttphttpsT)schemeuse_forwarding_for_https)r   r
   r   s      j/var/www/development/aibuddy-work/election-extract/venv/lib/python3.11/site-packages/urllib3/util/proxy.pyconnection_requires_http_tunnelr      sR      u V##u 	G## 	$1 	$ u 4    )NNN)r   r	   r
   r   r   r   r   r   )	
__future__r   typingurlr   TYPE_CHECKING
connectionr   r    r   r   <module>r      s}    " " " " " "       	 )(((((( !'+%)             r   