pattern copy should be deep
This commit is contained in:
parent
bbc61a2fcd
commit
87be06dcbe
@ -561,15 +561,13 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
|
|||||||
|
|
||||||
def copy(self) -> Self:
|
def copy(self) -> Self:
|
||||||
"""
|
"""
|
||||||
Return a copy of the Pattern, deep-copying shapes and copying refs
|
Convenience method for `copy.deepcopy(pattern)` (same as `Pattern.deepcopy()`).
|
||||||
entries, but not deep-copying any referenced patterns.
|
|
||||||
|
|
||||||
See also: `Pattern.deepcopy()`
|
See also: `Pattern.deepcopy()`
|
||||||
|
|
||||||
Returns:
|
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:
|
def deepcopy(self) -> Self:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user