o
    x¡·i[  ã                   @   s   d dl Z G dd„ deƒZdS )é    Nc                       s8   e Zd ZdZdededdf‡ fdd„Zd
dd	„Z‡  ZS )ÚMissingDependencyErrorz"An optional dependency is missing.ÚargsÚwarningÚreturnNc                   s   t ƒ j|Ž  || _d S )N)ÚsuperÚ__init__Ú_wb_warning)Úselfr   r   ©Ú	__class__© úU/home/ubuntu/.local/lib/python3.10/site-packages/wandb/integration/metaflow/errors.pyr      s   
zMissingDependencyError.__init__c                 C   s   t  | j¡ dS )z Print a warning for the problem.N)ÚwandbÚtermwarnr   )r	   r   r   r   Úwarn   s   zMissingDependencyError.warn)r   N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚobjectÚstrr   r   Ú__classcell__r   r   r
   r   r      s    r   )r   Ú	Exceptionr   r   r   r   r   Ú<module>   s    