File: D:/Python311/Lib/site-packages/pip/_vendor/resolvelib/__pycache__/reporters.cpython-311.pyc
�
�mi� � � � d dl mZ d dlmZmZmZ ddlmZmZm Z m
Z
mZ erddlm
Z
G d� dee eef � � ZdS ) � )�annotations)�
TYPE_CHECKING�
Collection�Generic� )�CT�KT�RT�RequirementInformation�State)� Criterionc �R � e Zd ZdZdd�Zdd�Zdd
�Zdd�Zdd�Zd d�Z d!d�Z
d"d�ZdS )#�BaseReporterz>Delegate class to provide progress reporting for the resolver.�return�Nonec � � dS )z-Called before the resolution actually starts.N� )�selfs �BD:\Python311\Lib\site-packages\pip/_vendor/resolvelib/reporters.py�startingzBaseReporter.starting � � � � � �index�intc � � dS )zYCalled before each round of resolution starts.
The index is zero-based.
Nr )r r s r �starting_roundzBaseReporter.starting_round r r �state�State[RT, CT, KT]c � � dS )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 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 )z�Called 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 � criterion�Criterion[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"