]>
jfr.im git - dlqueue.git/blob - venv/lib/python3.11/site-packages/pip/_vendor/resolvelib/reporters.py
1 class BaseReporter(object):
2 """Delegate class to provider progress reporting for the resolver."""
5 """Called before the resolution actually starts."""
7 def starting_round(self
, index
):
8 """Called before each round of resolution starts.
10 The index is zero-based.
13 def ending_round(self
, index
, state
):
14 """Called before each round of resolution ends.
16 This is NOT called if the resolution ends at this round. Use `ending`
17 if you want to report finalization. The index is zero-based.
20 def ending(self
, state
):
21 """Called before the resolution ends successfully."""
23 def adding_requirement(self
, requirement
, parent
):
24 """Called when adding a new requirement into the resolve criteria.
26 :param requirement: The additional requirement to be applied to filter
27 the available candidaites.
28 :param parent: The candidate that requires ``requirement`` as a
29 dependency, or None if ``requirement`` is one of the root
30 requirements passed in from ``Resolver.resolve()``.
33 def resolving_conflicts(self
, causes
):
34 """Called when starting to attempt requirement conflict resolution.
36 :param causes: The information on the collision that caused the backtracking.
39 def rejecting_candidate(self
, criterion
, candidate
):
40 """Called when rejecting a candidate during backtracking."""
42 def pinning(self
, candidate
):
43 """Called when adding a candidate to the potential solution."""