Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Aug 9, 2024
1 parent f32db77 commit 614b866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dedupe/branch_and_bound.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import functools
from typing import Any, Iterable, Mapping, Sequence, Tuple
from typing import Any, Collection, Iterable, Mapping, Tuple

from ._typing import Cover
from .predicates import Predicate
Expand Down Expand Up @@ -34,7 +34,7 @@ def _uncovered_by(


def _order_by(
candidates: Mapping[Predicate, Sequence[Any]], p: Predicate
candidates: Mapping[Predicate, Collection[Any]], p: Predicate
) -> tuple[int, float]:
return (len(candidates[p]), -p.cover_count)

Expand Down

0 comments on commit 614b866

Please sign in to comment.