Skip to content

Commit

Permalink
Merge pull request #136 from jimkring/patch-1
Browse files Browse the repository at this point in the history
add required arg `backtrack_causes` to `get_preferences()` override
  • Loading branch information
pradyunsg authored Oct 1, 2023
2 parents 69d9fee + 3d0cfa3 commit 6df10d7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/reporter_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ 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 6df10d7

Please sign in to comment.