Skip to content

Commit 1460545

Browse files
committed
mypy correct
1 parent 0dab2be commit 1460545

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cadquery/cq.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3515,12 +3515,15 @@ def loft(self: T, ruled: bool = False, combine: Union[bool, str] = True) -> T:
35153515
r: Shape = Solid.makeLoft(wiresToLoft, ruled)
35163516

35173517
if isinstance(combine, str) and combine == "cut":
3518-
r = self._cutFromBase(r)
3518+
newS = self._cutFromBase(r)
35193519

35203520
elif isinstance(combine, bool) and combine:
3521-
r = self._combineWithBase(r)
3521+
newS = self._combineWithBase(r)
3522+
3523+
else:
3524+
newS = self.newObject([r])
35223525

3523-
return r
3526+
return newS
35243527

35253528
def _getFaces(self) -> List[Face]:
35263529
"""

0 commit comments

Comments
 (0)