Skip to content

Commit

Permalink
Fix AbstractProvider because of #84
Browse files Browse the repository at this point in the history
  • Loading branch information
notatallshaw committed Sep 26, 2021
1 parent 4a9a17f commit 915395c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/resolvelib/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ def identify(self, requirement_or_candidate):
"""
raise NotImplementedError

def get_preference(self, identifier, resolutions, candidates, information):
def get_preference(
self,
identifier,
resolutions,
candidates,
information,
backtrack_causes,
):
"""Produce a sort key for given requirement based on preference.
The preference is defined as "I think this requirement should be
Expand All @@ -25,6 +32,8 @@ def get_preference(self, identifier, resolutions, candidates, information):
Each value is an iterator of candidates.
:param information: Mapping of requirement information of each package.
Each value is an iterator of *requirement information*.
:param backtrack_causes: Sequence of requirement information that were
the requirements that caused the resolver to most recently backtrack.
A *requirement information* instance is a named tuple with two members:
Expand Down

0 comments on commit 915395c

Please sign in to comment.