Skip to content

Commit

Permalink
fix: update config attributes when add method is called
Browse files Browse the repository at this point in the history
  • Loading branch information
filimarc committed Nov 27, 2024
1 parent 8b32630 commit 4d72d29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bsb/config/_attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ def add(self, key, *args, **kwargs):
f"{self.get_node_name()} already contains '{key}'."
+ " Use `node[key] = value` if you want to overwrite it."
)
self._config_attr.flag_dirty(self._config_parent)
self[key] = value = self._elem_type(*args, _parent=self, _key=key, **kwargs)
return value

Expand Down

0 comments on commit 4d72d29

Please sign in to comment.