o
    M,h_                  
   @   sB   d dl mZ d dlmZ d	dedee deeeef fddZdS )
    )	Generator)OptionalNmethodparamsreturnc                 c   s"    |du ri }| |d}|V }|S )a  Build a command iterator to send to the BiDi protocol.

    Parameters:
    -----------
        method: The method to execute.
        params: The parameters to pass to the method. Default is None.

    Returns:
    --------
        The response from the command execution.
    N)r   r    )r   r   commandcmdr   r   q/var/www/www-root/data/www/bot.pdev.uz/venv/lib/python3.10/site-packages/selenium/webdriver/common/bidi/common.pycommand_builder   s   
r   )N)collections.abcr   typingr   strdictr   r   r   r   r
   <module>   s   *