
    i                        d dl mZ ddZy)    )annotationsc                    |dk(  }|rJ| j                   j                  }|D ]/  }||   j                  xs i }|j                  d      dk(  s+d|fc S  y)a  Detect if any of the queues are quorum queues.

    Returns:
        tuple[bool, str]: A tuple containing a boolean indicating if any of the queues are quorum queues
        and the name of the first quorum queue found or an empty string if no quorum queues were found.
    amqpzx-queue-typequorumT)F )r   queuesqueue_argumentsget)appdriver_typeis_rabbitmq_brokerr   qname
qargumentss         X/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/celery/utils/quorum_queues.pydetect_quorum_queuesr      sb     %. 	#E66<"J~~n-9U{"	#
     N)r   strreturnztuple[bool, str])
__future__r   r    r   r   <module>r      s    "r   