[repetition / others] copies should get their own repetitions

This commit is contained in:
Jan Petykiewicz 2026-03-31 22:15:21 -07:00
commit 8d50f497f1
9 changed files with 32 additions and 0 deletions

View file

@ -65,6 +65,7 @@ class Label(PositionableImpl, RepeatableImpl, AnnotatableImpl, Bounded, Pivotabl
memo = {} if memo is None else memo
new = copy.copy(self)
new._offset = self._offset.copy()
new._repetition = copy.deepcopy(self._repetition, memo)
new._annotations = copy.deepcopy(self._annotations, memo)
return new