Skip to content

Commit 83d580d

Browse files
committed
Try mypy fix
1 parent 5328bc2 commit 83d580d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cadquery/cq.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ def split(self: T, *args, **kwargs) -> T:
307307
else [v for v in arg.vals() if isinstance(v, Shape)]
308308
)
309309
rv = [solid.split(*tools)]
310-
self._mergeTags(arg)
310+
if isinstance(arg, Workplane):
311+
self._mergeTags(arg)
311312

312313
# split using the current workplane
313314
else:
@@ -486,7 +487,7 @@ def _getTagged(self, name: str) -> "Workplane":
486487

487488
return rv
488489

489-
def _mergeTags(self, obj: T) -> T:
490+
def _mergeTags(self, obj: T) -> "Workplane":
490491
"""
491492
Merge tags
492493

0 commit comments

Comments
 (0)