o
    Vhg                     @  s`   d dl mZ 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)CleoLogicError)FactoryCommandLoader)Callable)Commandc                   @  s   e Zd Zd
ddZd	S )CommandLoadercommand_namestrfactoryCallable[[], Command]returnNonec                 C  s(   || j v rtd| d|| j |< d S )NzThe command "z" already exists.)
_factoriesr   )selfr	   r    r   q/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/poetry/console/command_loader.pyregister_factory   s   
zCommandLoader.register_factoryN)r	   r
   r   r   r   r   )__name__
__module____qualname__r   r   r   r   r   r      s    r   N)
__future__r   typingr   cleo.exceptionsr   #cleo.loaders.factory_command_loaderr   collections.abcr   cleo.commands.commandr   r   r   r   r   r   <module>   s    