1
1
class AbstractProvider (object ):
2
- """Delegate class to provide requirement interface for the resolver."""
2
+ """Delegate class to provide the required interface for the resolver."""
3
3
4
4
def identify (self , requirement_or_candidate ):
5
5
"""Given a requirement, return an identifier for it.
@@ -26,7 +26,7 @@ def get_preference(
26
26
:param identifier: An identifier as returned by ``identify()``. This
27
27
identifies the dependency matches of which should be returned.
28
28
:param resolutions: Mapping of candidates currently pinned by the
29
- resolver. Each key is an identifier, and the value a candidate.
29
+ resolver. Each key is an identifier, and the value is a candidate.
30
30
The candidate may conflict with requirements from ``information``.
31
31
:param candidates: Mapping of each dependency's possible candidates.
32
32
Each value is an iterator of candidates.
@@ -42,7 +42,7 @@ def get_preference(
42
42
* ``parent`` specifies the candidate that provides (dependend on) the
43
43
requirement, or ``None`` to indicate a root requirement.
44
44
45
- The preference could depend on a various of issues, including (not
45
+ The preference could depend on various of issues, including (not
46
46
necessarily in this order):
47
47
48
48
* Is this package pinned in the current resolution result?
@@ -61,7 +61,7 @@ def get_preference(
61
61
raise NotImplementedError
62
62
63
63
def find_matches (self , identifier , requirements , incompatibilities ):
64
- """Find all possible candidates that satisfy given constraints.
64
+ """Find all possible candidates that satisfy the given constraints.
65
65
66
66
:param identifier: An identifier as returned by ``identify()``. This
67
67
identifies the dependency matches of which should be returned.
@@ -92,7 +92,7 @@ def find_matches(self, identifier, requirements, incompatibilities):
92
92
def is_satisfied_by (self , requirement , candidate ):
93
93
"""Whether the given requirement can be satisfied by a candidate.
94
94
95
- The candidate is guarenteed to have been generated from the
95
+ The candidate is guaranteed to have been generated from the
96
96
requirement.
97
97
98
98
A boolean should be returned to indicate whether ``candidate`` is a
0 commit comments