Skip to content

Commit

Permalink
allow abstractsets
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Feb 17, 2023
1 parent 783ef00 commit 89a8973
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dedupe/predicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import re
import string
from itertools import product
from typing import TYPE_CHECKING, FrozenSet
from typing import TYPE_CHECKING

import dedupe.levenshtein as levenshtein
import dedupe.tfidf as tfidf
Expand All @@ -17,7 +17,7 @@
from dedupe.predicate_functions import * # noqa: F401, F403

if TYPE_CHECKING:
from typing import Any, Iterable, Mapping, Sequence
from typing import AbstractSet, Any, FrozenSet, Iterable, Mapping, Sequence

from dedupe._typing import Literal, PredicateFunction, RecordDict
from dedupe.index import Index
Expand Down Expand Up @@ -67,7 +67,7 @@ def __len__(self) -> int:
return 1

@abc.abstractmethod
def __call__(self, record: RecordDict, **kwargs) -> FrozenSet[str]:
def __call__(self, record: RecordDict, **kwargs) -> AbstractSet[str]:
pass

def __add__(self, other: "Predicate") -> "CompoundPredicate":
Expand Down

0 comments on commit 89a8973

Please sign in to comment.