
    ci                         d dl Z d dlmZmZmZmZ d dlmZmZ  e j	        de
d           deeef         deeeeef         f         d	eeeeeef         f                  fd
ZdS )    N)AnyDictOptionalUnion)AsyncTransport	TransportzjImporting from the 'elasticsearch.transport' module is deprecated. Instead import from 'elastic_transport'   category
stacklevel	node_infohostreturnc                 x    t          j        dt          d           |                     dg           dgk    rdS |S )al  
    Simple callback that takes the node info from `/_cluster/nodes` and a
    parsed connection information and return the connection information. If
    `None` is returned this node will be skipped.
    Useful for filtering nodes (by proximity for example) or if additional
    information needs to be provided for the :class:`~elasticsearch.Connection`
    class. By default master only nodes are filtered out since they shouldn't
    typically be used for API operations.
    :arg node_info: node information from `/_cluster/nodes`
    :arg host: connection information (host, port) extracted from the node info
    ziThe 'get_host_info' function is deprecated. Instead use the 'sniff_node_callback' parameter on the clientr	   r
   rolesmasterN)warningswarnDeprecationWarningget)r   r   s     W/var/www/html/auto_sub_bot/venv/lib/python3.11/site-packages/elasticsearch/transport.pyget_host_infor       sP     M	@#	    }}Wb!!hZ//tK    )r   typingr   r   r   r   elastic_transportr   r   r   r   strintr    r   r   <module>r      s   $  - - - - - - - - - - - - 7 7 7 7 7 7 7 7 .	   CH~%)#uS#X*>%?d3c3h'()     r   