Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit c88d300

Browse files
authored
Merge pull request #736 from datafold/unfreeze-differ-classes
unfreeze differ classes
2 parents 435e7c0 + 707b3d6 commit c88d300

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

data_diff/diff_tables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Algorithm(Enum):
3030
DiffResult = Iterator[Tuple[str, tuple]] # Iterator[Tuple[Literal["+", "-"], tuple]]
3131

3232

33-
@attrs.define(frozen=True)
33+
@attrs.define(frozen=False)
3434
class ThreadBase:
3535
"Provides utility methods for optional threading"
3636

@@ -179,7 +179,7 @@ def get_stats_dict(self, is_dbt: bool = False):
179179
return json_output
180180

181181

182-
@attrs.define(frozen=True)
182+
@attrs.define(frozen=False)
183183
class TableDiffer(ThreadBase, ABC):
184184
bisection_factor = 32
185185
stats: dict = {}

data_diff/hashdiff_tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def diff_sets(a: list, b: list, json_cols: dict = None) -> Iterator:
5252
yield from v
5353

5454

55-
@attrs.define(frozen=True)
55+
@attrs.define(frozen=False)
5656
class HashDiffer(TableDiffer):
5757
"""Finds the diff between two SQL tables
5858

data_diff/joindiff_tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def json_friendly_value(v):
110110
return v
111111

112112

113-
@attrs.define(frozen=True)
113+
@attrs.define(frozen=False)
114114
class JoinDiffer(TableDiffer):
115115
"""Finds the diff between two SQL tables in the same database, using JOINs.
116116

0 commit comments

Comments
 (0)