From 7ac3b0125fb0f9c94f72e51e5962cdb7ec44968c Mon Sep 17 00:00:00 2001 From: Jan-Lukas Wynen Date: Thu, 27 Nov 2025 09:14:04 +0100 Subject: [PATCH] Use correct setattr for frozen dataclass --- src/ess/reduce/data/_registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ess/reduce/data/_registry.py b/src/ess/reduce/data/_registry.py index 94857e98..6c1d7a44 100644 --- a/src/ess/reduce/data/_registry.py +++ b/src/ess/reduce/data/_registry.py @@ -134,7 +134,7 @@ def __post_init__(self, unzip: bool) -> None: if self.extractor is not None and unzip: raise TypeError("Set either the 'unzip' argument or 'extractor', not both.") if self.extractor is None and unzip: - super().__setattr__("extractor", "unzip") + object.__setattr__(self, "extractor", "unzip") @classmethod def from_pooch_string(cls, pooch_string: str) -> Entry: