o
    Vh                     @  sz   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
 d dlmZ er2d dlmZ G d	d
 d
ee
ZdS )    )annotations)TYPE_CHECKING)ClassVar)Version)__version__)
AddCommand)SelfCommand)Optionc                   @  sT   e Zd ZU dZdZdd ejD Zded< de	  dej
 d	ZedddZdS )SelfAddCommandzself addz8Add additional packages to Poetry's runtime environment.c                 C  s   g | ]	}|j d v r|qS )>   dry-runallow-prereleasesextrassourceeditable)name).0o r   t/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/poetry/console/commands/self/add.py
<listcomp>   s
    
zSelfAddCommand.<listcomp>zClassVar[list[Option]]optionsz}The <c1>self add</c1> command installs additional packages to Poetry's runtime environment.

This is managed in the <comment>z</> file.


returnstrc                 C  s&   t t}d}| sd}d| dS )N z
 --previewz[
If you want to update it to the latest compatible version, you can use `poetry self updatezn`.
If you prefer to upgrade it to the latest available version, you can use `poetry self add package@latest`.
)r   parser   	is_stable)selfversionflagsr   r   r   _hint_update_packages#   s   
z$SelfAddCommand._hint_update_packagesN)r   r   )__name__
__module____qualname__r   descriptionr   r   __annotations__r   !get_default_system_pyproject_fileexampleshelppropertyr    r   r   r   r   r
      s   
 
r
   N)
__future__r   typingr   r   poetry.core.constraints.versionr   poetry.__version__r   poetry.console.commands.addr   )poetry.console.commands.self.self_commandr   cleo.io.inputs.optionr	   r
   r   r   r   r   <module>   s    