]> jfr.im git - dlqueue.git/blob - venv/lib/python3.11/site-packages/pip/_vendor/resolvelib/reporters.py
init: venv aand flask
[dlqueue.git] / 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."""
3
4 def starting(self):
5 """Called before the resolution actually starts."""
6
7 def starting_round(self, index):
8 """Called before each round of resolution starts.
9
10 The index is zero-based.
11 """
12
13 def ending_round(self, index, state):
14 """Called before each round of resolution ends.
15
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.
18 """
19
20 def ending(self, state):
21 """Called before the resolution ends successfully."""
22
23 def adding_requirement(self, requirement, parent):
24 """Called when adding a new requirement into the resolve criteria.
25
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()``.
31 """
32
33 def resolving_conflicts(self, causes):
34 """Called when starting to attempt requirement conflict resolution.
35
36 :param causes: The information on the collision that caused the backtracking.
37 """
38
39 def rejecting_candidate(self, criterion, candidate):
40 """Called when rejecting a candidate during backtracking."""
41
42 def pinning(self, candidate):
43 """Called when adding a candidate to the potential solution."""