From 13140ac1d3d98a8c9991e2961d6faae9108cf05b Mon Sep 17 00:00:00 2001 From: jan Date: Wed, 12 Apr 2023 21:43:58 -0700 Subject: [PATCH] pattern copy should be deep --- masque/pattern.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/masque/pattern.py b/masque/pattern.py index 13dba63..223d23f 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -561,15 +561,13 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable): def copy(self) -> Self: """ - Return a copy of the Pattern, deep-copying shapes and copying refs - entries, but not deep-copying any referenced patterns. - + Convenience method for `copy.deepcopy(pattern)` (same as `Pattern.deepcopy()`). See also: `Pattern.deepcopy()` Returns: - A copy of the current Pattern. + A deep copy of the current Pattern. """ - return copy.copy(self) + return copy.deepcopy(self) def deepcopy(self) -> Self: """