(+[ d dl mZ d dlmZmZmZ ddlmZmZm Z m Z mZ erddlm Z G d dee eef ZdS ) )annotations) TYPE_CHECKING CollectionGeneric )CTKTRTRequirementInformationState) Criterionc R e Zd ZdZddZddZdd ZddZddZd dZ d!dZ d"dZdS )#BaseReporterz>Delegate class to provide progress reporting for the resolver.returnNonec dS )z-Called before the resolution actually starts.N )selfs r/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_vendor/resolvelib/reporters.pystartingzBaseReporter.starting indexintc dS )zYCalled before each round of resolution starts. The index is zero-based. Nr )r r s r starting_roundzBaseReporter.starting_round r r stateState[RT, CT, KT]c dS )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 r s r ending_roundzBaseReporter.ending_round r r c dS )z/Called before the resolution ends successfully.Nr )r r s r endingzBaseReporter.ending r r requirementr parent CT | Nonec dS )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$ s r adding_requirementzBaseReporter.adding_requirement! r r causes*Collection[RequirementInformation[RT, CT]]c dS )zCalled when starting to attempt requirement conflict resolution. :param causes: The information on the collision that caused the backtracking. Nr )r r( s r resolving_conflictsz BaseReporter.resolving_conflicts+ r r criterionCriterion[RT, CT] candidater c dS )z6Called when rejecting a candidate during backtracking.Nr )r r, r. s r rejecting_candidatez BaseReporter.rejecting_candidate3 r r c dS )z9Called when adding a candidate to the potential solution.Nr )r r. s r pinningzBaseReporter.pinning6 r r N)r r )r r r r )r r r r r r )r r r r )r# r r$ r% r r )r( r) r r )r, r- r. r r r )r. r r r )__name__ __module____qualname____doc__r r r r" r' r+ r0 r2 r r r r r s HH<