Skip to content

Commit ebf6c51

Browse files
authored
Merge pull request sarugaku#100 from brettcannon/patch-1
Some grammar fixes
2 parents 32ebd52 + 9fd9847 commit ebf6c51

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/resolvelib/providers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class AbstractProvider(object):
2-
"""Delegate class to provide requirement interface for the resolver."""
2+
"""Delegate class to provide the required interface for the resolver."""
33

44
def identify(self, requirement_or_candidate):
55
"""Given a requirement, return an identifier for it.
@@ -26,7 +26,7 @@ def get_preference(
2626
:param identifier: An identifier as returned by ``identify()``. This
2727
identifies the dependency matches of which should be returned.
2828
: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.
3030
The candidate may conflict with requirements from ``information``.
3131
:param candidates: Mapping of each dependency's possible candidates.
3232
Each value is an iterator of candidates.
@@ -42,7 +42,7 @@ def get_preference(
4242
* ``parent`` specifies the candidate that provides (dependend on) the
4343
requirement, or ``None`` to indicate a root requirement.
4444
45-
The preference could depend on a various of issues, including (not
45+
The preference could depend on various of issues, including (not
4646
necessarily in this order):
4747
4848
* Is this package pinned in the current resolution result?
@@ -61,7 +61,7 @@ def get_preference(
6161
raise NotImplementedError
6262

6363
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.
6565
6666
:param identifier: An identifier as returned by ``identify()``. This
6767
identifies the dependency matches of which should be returned.
@@ -92,7 +92,7 @@ def find_matches(self, identifier, requirements, incompatibilities):
9292
def is_satisfied_by(self, requirement, candidate):
9393
"""Whether the given requirement can be satisfied by a candidate.
9494
95-
The candidate is guarenteed to have been generated from the
95+
The candidate is guaranteed to have been generated from the
9696
requirement.
9797
9898
A boolean should be returned to indicate whether ``candidate`` is a

0 commit comments

Comments
 (0)