don't need to deepcopy twice
This commit is contained in:
parent
c2008f2719
commit
a2cc94794e
@ -95,8 +95,8 @@ class Ref(
|
|||||||
def __deepcopy__(self, memo: dict | None = None) -> 'Ref':
|
def __deepcopy__(self, memo: dict | None = None) -> 'Ref':
|
||||||
memo = {} if memo is None else memo
|
memo = {} if memo is None else memo
|
||||||
new = copy.copy(self)
|
new = copy.copy(self)
|
||||||
new.repetition = copy.deepcopy(self.repetition, memo)
|
#new.repetition = copy.deepcopy(self.repetition, memo)
|
||||||
new.annotations = copy.deepcopy(self.annotations, memo)
|
#new.annotations = copy.deepcopy(self.annotations, memo)
|
||||||
return new
|
return new
|
||||||
|
|
||||||
def as_pattern(
|
def as_pattern(
|
||||||
|
Loading…
Reference in New Issue
Block a user