From 5607425d89fb79469fd2a582d937f097c29aa945 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sat, 28 Sep 2024 12:27:26 +0100 Subject: [PATCH] Make it possible create sets of our custom types --- src/vws/reports.py | 12 ++++++------ src/vws/types.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vws/reports.py b/src/vws/reports.py index 3d157a783..431cfcaa6 100644 --- a/src/vws/reports.py +++ b/src/vws/reports.py @@ -10,7 +10,7 @@ @beartype -@dataclass +@dataclass(frozen=True) class DatabaseSummaryReport: """ A database summary report. @@ -47,7 +47,7 @@ class TargetStatuses(Enum): @beartype -@dataclass +@dataclass(frozen=True) class TargetSummaryReport: """ A target summary report. @@ -68,7 +68,7 @@ class TargetSummaryReport: @beartype(conf=BeartypeConf(is_pep484_tower=True)) -@dataclass +@dataclass(frozen=True) class TargetRecord: """ A target record. @@ -86,7 +86,7 @@ class TargetRecord: @beartype -@dataclass +@dataclass(frozen=True) class TargetData: """ The target data optionally included with a query match. @@ -98,7 +98,7 @@ class TargetData: @beartype -@dataclass +@dataclass(frozen=True) class QueryResult: """ One query match result. @@ -112,7 +112,7 @@ class QueryResult: @beartype -@dataclass +@dataclass(frozen=True) class TargetStatusAndRecord: """ The target status and a target record. diff --git a/src/vws/types.py b/src/vws/types.py index e6f59145a..22e912607 100644 --- a/src/vws/types.py +++ b/src/vws/types.py @@ -5,7 +5,7 @@ from beartype import beartype -@dataclass +@dataclass(frozen=True) @beartype class Response: """