From 9c0936071d277692efc6e8507d4b58c98226dac6 Mon Sep 17 00:00:00 2001 From: huyenngn Date: Thu, 14 Mar 2024 10:00:28 +0100 Subject: [PATCH] fix(decl): Overwrite by calling delete operation --- capellambse/decl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capellambse/decl.py b/capellambse/decl.py index 9210cd0c4..3850e2967 100644 --- a/capellambse/decl.py +++ b/capellambse/decl.py @@ -228,7 +228,7 @@ def _operate_modify( continue if isinstance(value, list): - setattr(parent, attr, []) + _operate_delete(promises, parent, {attr: value}) yield from _create_complex_objects(promises, parent, attr, value) elif isinstance(value, dict): obj = getattr(parent, attr)