mirror of
https://github.com/gumyr/build123d.git
synced 2026-01-18 15:21:20 -08:00
Added DeprecationWarning to Shape.copy
This commit is contained in:
parent
96d2662df9
commit
cb86a2a9f9
1 changed files with 5 additions and 0 deletions
|
|
@ -2695,6 +2695,11 @@ class Shape:
|
|||
|
||||
def copy(self) -> Shape:
|
||||
"""Here for backwards compatibility with cq-editor"""
|
||||
warnings.warn(
|
||||
"copy() will be deprecated - use copy.copy() or copy.deepcopy() instead",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
return copy.deepcopy(self, None)
|
||||
|
||||
def transform_shape(self, t_matrix: Matrix) -> Shape:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue