U
    DA·fû  ã                   @   s.   d dl mZ d dlmZ eG dd„ dƒƒZdS )é    )ÚList)Ú	componentc                   @   s,   e Zd Zee dœdd„Zedœdd„ZdS )ÚRepeat)Úoutputsc                 C   s"   || _ tj| fdd„ |D ƒŽ d S )Nc                 S   s   i | ]
}|t “qS © )Úint)Ú.0Úkr   r   úM/tmp/pip-unpacked-wheel-z752163x/haystack/testing/sample_components/repeat.pyÚ
<dictcomp>   s      z#Repeat.__init__.<locals>.<dictcomp>)Ú_outputsr   Zset_output_types)Úselfr   r   r   r
   Ú__init__   s    zRepeat.__init__©Úvaluec                    s   ‡ fdd„| j D ƒS )z4
        :param value: the value to repeat.
        c                    s   i | ]
}|ˆ “qS r   r   )r   Úvalr   r   r
   r      s      zRepeat.run.<locals>.<dictcomp>)r   )r   r   r   r   r
   Úrun   s    z
Repeat.runN)Ú__name__Ú
__module__Ú__qualname__r   Ústrr   r   r   r   r   r   r
   r   
   s   r   N)Útypingr   Zhaystack.core.componentr   r   r   r   r   r
   Ú<module>   s   