From bcbabcd31530789f68e6530b1a28b20836e9fb7d Mon Sep 17 00:00:00 2001 From: mgcam Date: Tue, 5 Mar 2024 13:40:56 +0000 Subject: [PATCH] Make the dataclasses semi-immutable - no change for the values --- lang_qc/models/pacbio/well.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang_qc/models/pacbio/well.py b/lang_qc/models/pacbio/well.py index efd5abc..1568842 100644 --- a/lang_qc/models/pacbio/well.py +++ b/lang_qc/models/pacbio/well.py @@ -33,7 +33,7 @@ from lang_qc.models.qc_state import QcState -@dataclass +@dataclass(kw_only=True, frozen=True) class PacBioWell: """ A response model for a single PacBio well on a particular PacBio run. @@ -126,7 +126,7 @@ class PacBioPagedWells(PagedResponse, extra="forbid"): ) -@dataclass +@dataclass(kw_only=True, frozen=True) class PacBioWellFull(PacBioWell): """ A response model for a single PacBio well on a particular PacBio run.