From 4b129dfaa2ac564867ca75682d41617b4239609d Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Fri, 16 Aug 2024 16:39:19 +0200 Subject: [PATCH] Address E721 in Structure.replace_grouping --- sdmx/model/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdmx/model/common.py b/sdmx/model/common.py index f0c1f7ae..55d82289 100644 --- a/sdmx/model/common.py +++ b/sdmx/model/common.py @@ -1121,7 +1121,7 @@ def replace_grouping(self, cl: ComponentList) -> None: field = None for f in fields(self): is_dictlike = get_origin(f.type) is DictLikeDescriptor - if f.type == type(cl) or (is_dictlike and get_args(f.type)[1] is type(cl)): + if f.type is type(cl) or (is_dictlike and get_args(f.type)[1] is type(cl)): field = f break