Skip to content

Commit

Permalink
consistent frozenset
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Feb 17, 2023
1 parent dd67074 commit 296beb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dedupe/labeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _predict(self, pairs: TrainingExamples) -> Labels:
"a frozen set, this will soon be required behaviour",
DeprecationWarning,
)
overlap = not set(keys).isdisjoint(predicate(record_1))
overlap = not frozenset(keys).isdisjoint(predicate(record_1))
if overlap:
labels.append(1)
break
Expand Down
2 changes: 1 addition & 1 deletion dedupe/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def cover(self, pairs: TrainingExamples, index_predicates: bool = True) -> Cover
coverage = frozenset(
i
for i, (record_1, record_2) in enumerate(pairs)
if not set(predicate(record_1)).isdisjoint(
if not frozenset(predicate(record_1)).isdisjoint(
predicate(record_2, target=True)
)
)
Expand Down

0 comments on commit 296beb2

Please sign in to comment.