o
    ÚtBhS  ã                   @   sF   d dl Z d dlmZ d dlmZmZ ddlmZ G dd„ de jƒZ	dS )é    N)ÚList)ÚDocumentNodeÚExecutionResulté   )ÚGraphQLRequestc                   @   sN   e Zd Zejdedefdd„ƒZdee	 dee fdd„Z
dd	„ Zd
d„ ZdS )Ú	TransportÚdocumentÚreturnc                 O   ó   t dƒ‚)zàExecute GraphQL query.

        Execute the provided document AST for either a remote or local GraphQL Schema.

        :param document: GraphQL query as AST Node or Document object.
        :return: ExecutionResult
        z4Any Transport subclass must implement execute method©ÚNotImplementedError)Úselfr   ÚargsÚkwargs© r   ún/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/gql/transport/transport.pyÚexecute
   s   	ÿzTransport.executeÚreqsc                 O   r
   )a	  Execute multiple GraphQL requests in a batch.

        Execute the provided requests for either a remote or local GraphQL Schema.

        :param reqs: GraphQL requests as a list of GraphQLRequest objects.
        :return: a list of ExecutionResult objects
        z;This Transport has not implemented the execute_batch methodr   )r   r   r   r   r   r   r   Úexecute_batch   s   ÿzTransport.execute_batchc                 C   ó   dS )z'Establish a session with the transport.Nr   ©r   r   r   r   Úconnect(   s   zTransport.connectc                 C   r   )zòClose the transport

        This method doesn't have to be implemented unless the transport would benefit
        from it. This is currently used by the RequestsHTTPTransport transport to close
        the session's connection pool.
        Nr   r   r   r   r   Úclose,   s   zTransport.closeN)Ú__name__Ú
__module__Ú__qualname__ÚabcÚabstractmethodr   r   r   r   r   r   r   r   r   r   r   r   r   	   s    þ
ûr   )
r   Útypingr   Úgraphqlr   r   Úgraphql_requestr   ÚABCr   r   r   r   r   Ú<module>   s
    