From 1604878201055a552d24377f11c2446e1001525e Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 17 Sep 2023 21:34:02 -0700 Subject: [PATCH] don't need to deepcopy twice --- masque/ref.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masque/ref.py b/masque/ref.py index 817eb68..7131c92 100644 --- a/masque/ref.py +++ b/masque/ref.py @@ -95,8 +95,8 @@ class Ref( def __deepcopy__(self, memo: dict | None = None) -> 'Ref': memo = {} if memo is None else memo new = copy.copy(self) - new.repetition = copy.deepcopy(self.repetition, memo) - new.annotations = copy.deepcopy(self.annotations, memo) + #new.repetition = copy.deepcopy(self.repetition, memo) + #new.annotations = copy.deepcopy(self.annotations, memo) return new def as_pattern(