Skip to content

Commit

Permalink
Remove unused all_subclasses()
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrews committed Dec 11, 2022
1 parent 40e4468 commit bad32f6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions dedupe/variables/base.py
Expand Up @@ -5,7 +5,7 @@
from dedupe import predicates

if TYPE_CHECKING:
from typing import Any, ClassVar, Generator, Iterable, Optional, Sequence, Type
from typing import Any, ClassVar, Iterable, Sequence, Type

from dedupe._typing import Comparator, PredicateFunction, VariableDefinition

Expand Down Expand Up @@ -47,15 +47,6 @@ def __getstate__(self) -> dict[str, Any]:

return odict

@classmethod
def all_subclasses(
cls,
) -> Generator[tuple[Optional[str], Type["Variable"]], None, None]:
for q in cls.__subclasses__():
yield getattr(q, "type", None), q
for p in q.all_subclasses():
yield p


class DerivedType(Variable):
type = "Derived"
Expand Down

0 comments on commit bad32f6

Please sign in to comment.