a
    <Bìjõ  ã                   @  sj   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rLddlmZ G dd„ dee	eef ƒZdS )	é    )Úannotations)ÚTYPE_CHECKINGÚ
CollectionÚGenericé   )ÚCTÚKTÚRTÚRequirementInformationÚState)Ú	Criterionc                   @  s”   e Zd ZdZddœdd„Zdddœdd	„Zdd
ddœdd„Zd
ddœdd„Zddddœdd„Zdddœdd„Z	ddddœdd„Z
dddœd d!„Zd"S )#ÚBaseReporterz>Delegate class to provide progress reporting for the resolver.ÚNone)Úreturnc                 C  s   dS )z-Called before the resolution actually starts.N© )Úselfr   r   ú_/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/reporters.pyÚstarting   s    zBaseReporter.startingÚint)Úindexr   c                 C  s   dS )zYCalled before each round of resolution starts.

        The index is zero-based.
        Nr   )r   r   r   r   r   Ústarting_round   s    zBaseReporter.starting_roundzState[RT, CT, KT])r   Ústater   c                 C  s   dS )zÉCalled 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   r   r   r   r   Úending_round   s    zBaseReporter.ending_round)r   r   c                 C  s   dS )z/Called before the resolution ends successfully.Nr   )r   r   r   r   r   Úending   s    zBaseReporter.endingr	   z	CT | None)ÚrequirementÚparentr   c                 C  s   dS )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   r   r   r   r   r   Úadding_requirement!   s    zBaseReporter.adding_requirementz*Collection[RequirementInformation[RT, CT]])Úcausesr   c                 C  s   dS )z Called when starting to attempt requirement conflict resolution.

        :param causes: The information on the collision that caused the backtracking.
        Nr   )r   r   r   r   r   Úresolving_conflicts+   s    z BaseReporter.resolving_conflictszCriterion[RT, CT]r   )Ú	criterionÚ	candidater   c                 C  s   dS )z6Called when rejecting a candidate during backtracking.Nr   )r   r   r    r   r   r   Úrejecting_candidate3   s    z BaseReporter.rejecting_candidate)r    r   c                 C  s   dS )z9Called when adding a candidate to the potential solution.Nr   )r   r    r   r   r   Úpinning6   s    zBaseReporter.pinningN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r!   r"   r   r   r   r   r      s   
r   N)Ú
__future__r   Útypingr   r   r   Ústructsr   r   r	   r
   r   Z	resolversr   r   r   r   r   r   Ú<module>   s
   