Skip to content

Commit f249ef7

Browse files
committed
fix up imports
1 parent 954b561 commit f249ef7

File tree

7 files changed

+22
-8
lines changed

7 files changed

+22
-8
lines changed

dedupe/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,18 @@
1313
training_data_link,
1414
)
1515
from dedupe.serializer import read_training, write_training # noqa: F401
16+
17+
__all__ = [
18+
"Dedupe",
19+
"Gazetteer",
20+
"RecordLink",
21+
"StaticDedupe",
22+
"StaticGazetteer",
23+
"StaticRecordLink",
24+
"canonicalize",
25+
"console_label",
26+
"training_data_dedupe",
27+
"training_data_link",
28+
"read_training",
29+
"write_training",
30+
]

dedupe/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
import dedupe.labeler as labeler
2828
import dedupe.predicates
2929
import dedupe.serializer as serializer
30-
from dedupe._typing import Literal
3130

3231
if TYPE_CHECKING:
3332
from typing import (
3433
BinaryIO,
3534
Collection,
3635
Generator,
3736
Iterable,
37+
Literal,
3838
MutableMapping,
3939
TextIO,
4040
Union,

dedupe/convenience.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
import random
88
import sys
99
import warnings
10-
from typing import Iterator, Tuple, overload
10+
from typing import Iterator, Literal, Tuple, overload
1111

1212
import numpy
1313

1414
import dedupe
1515
from dedupe._typing import (
1616
DataInt,
1717
DataStr,
18-
Literal,
1918
RecordDict,
2019
RecordDictPair,
2120
RecordID,

dedupe/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
Generator,
2323
Iterable,
2424
Iterator,
25+
Literal,
2526
Optional,
2627
Sequence,
2728
Type,
@@ -35,7 +36,6 @@
3536
ClosableJoinable,
3637
Data,
3738
FeaturizerFunction,
38-
Literal,
3939
MapLike,
4040
RecordID,
4141
RecordIDDType,

dedupe/predicates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
from dedupe.predicate_functions import * # noqa: F401, F403
1818

1919
if TYPE_CHECKING:
20-
from typing import AbstractSet, Any, FrozenSet, Iterable, Mapping, Sequence
20+
from typing import AbstractSet, Any, FrozenSet, Iterable, Literal, Mapping, Sequence
2121

22-
from dedupe._typing import Literal, PredicateFunction, RecordDict
22+
from dedupe._typing import PredicateFunction, RecordDict
2323
from dedupe.index import Index
2424

2525

dedupe/training.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from . import blocking, branch_and_bound
1414

1515
if TYPE_CHECKING:
16-
from typing import Iterable, Sequence
16+
from typing import Iterable, Literal, Sequence
1717

1818
from ._typing import (
1919
ComparisonCover,
@@ -23,7 +23,6 @@
2323
Data,
2424
DataInt,
2525
DataStr,
26-
Literal,
2726
)
2827
from ._typing import RecordDictPairs as TrainingExamples
2928
from ._typing import RecordID, RecordIDPair

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ files = ["dedupe", "benchmarks"]
6767
show_error_codes = true
6868
ignore_missing_imports = true
6969
check_untyped_defs = true
70+
implicit_reexport = false
7071

7172
[tool.pytest.ini_options]
7273
minversion = "7.1"

0 commit comments

Comments
 (0)