
    )h                    r    d dl mZ d dlmZmZmZ ddlmZmZm	Z	m
Z
mZ erddlmZ  G d dee	eef         Zy)	    )annotations)TYPE_CHECKING
CollectionGeneric   )CTKTRTRequirementInformationState)	Criterionc                  X    e Zd ZdZddZddZddZddZddZ	 	 	 	 ddZ	ddZ
dd	Zy
)BaseReporterz?Delegate class to provider progress reporting for the resolver.c                     y)z-Called before the resolution actually starts.N )selfs    S/var/www/html/venv/lib/python3.12/site-packages/pip/_vendor/resolvelib/reporters.pystartingzBaseReporter.starting           c                     y)zYCalled before each round of resolution starts.

        The index is zero-based.
        Nr   )r   indexs     r   starting_roundzBaseReporter.starting_round   r   r   c                     y)zCalled before each round of resolution ends.

        This is NOT called if the resolution ends at this round. Use `ending`
        if you want to report finalization. The index is zero-based.
        Nr   )r   r   states      r   ending_roundzBaseReporter.ending_round   r   r   c                     y)z/Called before the resolution ends successfully.Nr   )r   r   s     r   endingzBaseReporter.ending   r   r   c                     y)a  Called when adding a new requirement into the resolve criteria.

        :param requirement: The additional requirement to be applied to filter
            the available candidaites.
        :param parent: The candidate that requires ``requirement`` as a
            dependency, or None if ``requirement`` is one of the root
            requirements passed in from ``Resolver.resolve()``.
        Nr   )r   requirementparents      r   adding_requirementzBaseReporter.adding_requirement!   r   r   c                     y)zCalled when starting to attempt requirement conflict resolution.

        :param causes: The information on the collision that caused the backtracking.
        Nr   )r   causess     r   resolving_conflictsz BaseReporter.resolving_conflicts+   r   r   c                     y)z6Called when rejecting a candidate during backtracking.Nr   )r   	criterion	candidates      r   rejecting_candidatez BaseReporter.rejecting_candidate3   r   r   c                     y)z9Called when adding a candidate to the potential solution.Nr   )r   r(   s     r   pinningzBaseReporter.pinning6   r   r   N)returnNone)r   intr,   r-   )r   r.   r   State[RT, CT, KT]r,   r-   )r   r/   r,   r-   )r    r
   r!   z	CT | Noner,   r-   )r$   z*Collection[RequirementInformation[RT, CT]]r,   r-   )r'   zCriterion[RT, CT]r(   r   r,   r-   )r(   r   r,   r-   )__name__
__module____qualname____doc__r   r   r   r   r"   r%   r)   r+   r   r   r   r   r      s?    I<>@	EHr   r   N)
__future__r   typingr   r   r   structsr   r	   r
   r   r   	resolversr   r   r   r   r   <module>r8      s3    " 5 5 > >$,H72r2:& ,Hr   