Skip to content

Commit

Permalink
add required arg backtrack_causes to get_preferences() override
Browse files Browse the repository at this point in the history
backtrack_causes is a required argument in get_preferences, as defined by the parent class resolvelib.AbstractProvider. Adding this argument allows the example to run without errors.
  • Loading branch information
jimkring authored Aug 30, 2023
1 parent 77b256c commit 04a482e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/reporter_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, index):
def identify(self, requirement_or_candidate):
return requirement_or_candidate.name

def get_preference(self, identifier, resolutions, candidates, information):
def get_preference(self, identifier, resolutions, candidates, information, backtrack_causes):
return sum(1 for _ in candidates[identifier])

def find_matches(self, identifier, requirements, incompatibilities):
Expand Down

0 comments on commit 04a482e

Please sign in to comment.