Skip to content

Commit 157f17b

Browse files
committed
remove all_subclassses
1 parent 4412ebf commit 157f17b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

dedupe/variables/base.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from dedupe import predicates
66

77
if TYPE_CHECKING:
8-
from typing import Any, ClassVar, Generator, Iterable, Optional, Sequence, Type
8+
from typing import Any, ClassVar, Iterable, Sequence, Type
99

1010
from dedupe._typing import Comparator, PredicateFunction
1111
from dedupe._typing import Variable as VariableProtocol
@@ -39,15 +39,6 @@ def __getstate__(self) -> dict[str, Any]:
3939

4040
return odict
4141

42-
@classmethod
43-
def all_subclasses(
44-
cls,
45-
) -> Generator[tuple[Optional[str], Type["Variable"]], None, None]:
46-
for q in cls.__subclasses__():
47-
yield getattr(q, "type", None), q
48-
for p in q.all_subclasses():
49-
yield p
50-
5142

5243
class DerivedType(Variable):
5344
type = "Derived"

0 commit comments

Comments
 (0)