Skip to content

Commit

Permalink
Address E721 in Structure.replace_grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Aug 16, 2024
1 parent 4553388 commit 4b129df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdmx/model/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4b129df

Please sign in to comment.