Skip to content

Commit

Permalink
ensure that the keys in nested_attrs are not overwritten again
Browse files Browse the repository at this point in the history
  • Loading branch information
Durd3nT committed Feb 27, 2024
1 parent 4f94f12 commit 21c0d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/visualization/circuit/qcstyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def update(self, other):
else:
self[attr] = other[attr]

super().update(other)
super().update((key, value) for key, value in other.items() if key not in nested_attrs)


class DefaultStyle:
Expand Down

0 comments on commit 21c0d8c

Please sign in to comment.