o
    Vh                     @  sx   d dl mZ d dlmZ d dlmZ d dlmZ d dlmZ d dlm	Z	 er2d dl
mZ d dlmZ G d	d
 d
e	ZdS )    )annotations)TYPE_CHECKING)ClassVar)argument)option)InstallerCommand)Argument)Optionc                   @  s   e Zd ZU dZdZedddddgZded< g e	 e
d	d
de
dd
de
dd
dZded< dgZded< dddZd
S )UpdateCommandupdatezLUpdate the dependencies as according to the <comment>pyproject.toml</> file.packageszThe packages to updateT)optionalmultiplezClassVar[list[Argument]]	argumentssyncNzNSynchronize the environment with the locked packages and the specified groups.dry-runzQOutput the operations but do not execute anything (implicitly enables --verbose).lockz5Do not perform operations (only update the lockfile).zClassVar[list[Option]]optionsz#poetry.repositories.pypi_repositoryzClassVar[list[str]]loggersreturnintc                 C  s~   |  d}|r| jt|d | j| j | j| d | j	| d | j
| d  | jd | j S )Nr   *r   r   r   T)r   	installer	whitelistdictfromkeysonly_groupsactivated_groupsdry_runr   requires_synchronizationexecute_operationsr   run)selfr    r#   r/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/poetry/console/commands/update.pyhandle-   s   

zUpdateCommand.handle)r   r   )__name__
__module____qualname__namedescriptionr   r   __annotations__r   _group_dependency_optionsr   r   r   r%   r#   r#   r#   r$   r
      s2   
 
r
   N)
__future__r   typingr   r   cleo.helpersr   r   )poetry.console.commands.installer_commandr   cleo.io.inputs.argumentr   cleo.io.inputs.optionr	   r
   r#   r#   r#   r$   <module>   s    