o
    VÌh¯  ã                   @  sT   d dl mZ d dlmZ d dlmZ er d dlmZ d dlm	Z	 G dd„ deƒZ
dS )	é    )Úannotations)ÚTYPE_CHECKING)Ú
BasePlugin)ÚApplication)ÚCommandc                   @  s,   e Zd ZdZdZeddd„ƒZdd
d„ZdS )ÚApplicationPluginz-
    Base class for application plugins.
    zpoetry.application.pluginÚreturnúlist[type[Command]]c                 C  s   g S ©N© )Úselfr   r   úu/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/poetry/plugins/application_plugin.pyÚcommands   s   zApplicationPlugin.commandsÚapplicationr   ÚNonec                 C  s.   | j D ]}|jd usJ ‚|j |j|¡ qd S r
   )r   ÚnameÚcommand_loaderÚregister_factory)r   r   Úcommandr   r   r   Úactivate   s   
þzApplicationPlugin.activateN)r   r	   )r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚgroupÚpropertyr   r   r   r   r   r   r      s    r   N)Ú
__future__r   Útypingr   Úpoetry.plugins.base_pluginr   Úpoetry.console.applicationr   Úpoetry.console.commands.commandr   r   r   r   r   r   Ú<module>   s    