Skip to content

Commit 5607425

Browse files
committed
Make it possible create sets of our custom types
1 parent ee9a23e commit 5607425

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/vws/reports.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
@beartype
13-
@dataclass
13+
@dataclass(frozen=True)
1414
class DatabaseSummaryReport:
1515
"""
1616
A database summary report.
@@ -47,7 +47,7 @@ class TargetStatuses(Enum):
4747

4848

4949
@beartype
50-
@dataclass
50+
@dataclass(frozen=True)
5151
class TargetSummaryReport:
5252
"""
5353
A target summary report.
@@ -68,7 +68,7 @@ class TargetSummaryReport:
6868

6969

7070
@beartype(conf=BeartypeConf(is_pep484_tower=True))
71-
@dataclass
71+
@dataclass(frozen=True)
7272
class TargetRecord:
7373
"""
7474
A target record.
@@ -86,7 +86,7 @@ class TargetRecord:
8686

8787

8888
@beartype
89-
@dataclass
89+
@dataclass(frozen=True)
9090
class TargetData:
9191
"""
9292
The target data optionally included with a query match.
@@ -98,7 +98,7 @@ class TargetData:
9898

9999

100100
@beartype
101-
@dataclass
101+
@dataclass(frozen=True)
102102
class QueryResult:
103103
"""
104104
One query match result.
@@ -112,7 +112,7 @@ class QueryResult:
112112

113113

114114
@beartype
115-
@dataclass
115+
@dataclass(frozen=True)
116116
class TargetStatusAndRecord:
117117
"""
118118
The target status and a target record.

src/vws/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from beartype import beartype
66

77

8-
@dataclass
8+
@dataclass(frozen=True)
99
@beartype
1010
class Response:
1111
"""

0 commit comments

Comments
 (0)