Skip to content

Commit

Permalink
Merge pull request sarugaku#100 from brettcannon/patch-1
Browse files Browse the repository at this point in the history
Some grammar fixes
  • Loading branch information
pradyunsg authored Feb 2, 2022
2 parents 32ebd52 + 9fd9847 commit ebf6c51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/resolvelib/providers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class AbstractProvider(object):
"""Delegate class to provide requirement interface for the resolver."""
"""Delegate class to provide the required interface for the resolver."""

def identify(self, requirement_or_candidate):
"""Given a requirement, return an identifier for it.
Expand All @@ -26,7 +26,7 @@ def get_preference(
:param identifier: An identifier as returned by ``identify()``. This
identifies the dependency matches of which should be returned.
:param resolutions: Mapping of candidates currently pinned by the
resolver. Each key is an identifier, and the value a candidate.
resolver. Each key is an identifier, and the value is a candidate.
The candidate may conflict with requirements from ``information``.
:param candidates: Mapping of each dependency's possible candidates.
Each value is an iterator of candidates.
Expand All @@ -42,7 +42,7 @@ def get_preference(
* ``parent`` specifies the candidate that provides (dependend on) the
requirement, or ``None`` to indicate a root requirement.
The preference could depend on a various of issues, including (not
The preference could depend on various of issues, including (not
necessarily in this order):
* Is this package pinned in the current resolution result?
Expand All @@ -61,7 +61,7 @@ def get_preference(
raise NotImplementedError

def find_matches(self, identifier, requirements, incompatibilities):
"""Find all possible candidates that satisfy given constraints.
"""Find all possible candidates that satisfy the given constraints.
:param identifier: An identifier as returned by ``identify()``. This
identifies the dependency matches of which should be returned.
Expand Down Expand Up @@ -92,7 +92,7 @@ def find_matches(self, identifier, requirements, incompatibilities):
def is_satisfied_by(self, requirement, candidate):
"""Whether the given requirement can be satisfied by a candidate.
The candidate is guarenteed to have been generated from the
The candidate is guaranteed to have been generated from the
requirement.
A boolean should be returned to indicate whether ``candidate`` is a
Expand Down

0 comments on commit ebf6c51

Please sign in to comment.