diff --git a/cadquery/cq.py b/cadquery/cq.py index 20b5f3727..45493e4d2 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -656,7 +656,7 @@ def _computeXdir(normal): # a new workplane has the center of the workplane on the stack return s - def copyWorkplane(self, obj: T) -> T: + def copyWorkplane(self, obj: "Workplane") -> "Workplane": """ Copies the workplane from obj. @@ -664,7 +664,7 @@ def copyWorkplane(self, obj: T) -> T: :type obj: a CQ object :returns: a CQ object with obj's workplane """ - out = obj.__class__(obj.plane) + out = copy(obj) out.parent = self out.ctx = self.ctx return out