Skip to content

Commit d5cb4c6

Browse files
Ruben ARubenRubens
authored andcommitted
raise TypeError when Location param is a tuple
1 parent a71a93e commit d5cb4c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cadquery/occ_impl/geom.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,12 @@ def __init__(self, *args):
928928
return
929929
elif isinstance(t, gp_Trsf):
930930
T = t
931+
elif isinstance(t, (tuple, list)):
932+
raise TypeError(
933+
"A tuple or list is not a valid parameter, use a Vector instead."
934+
)
935+
else:
936+
raise TypeError("Unexpected parameters")
931937
elif len(args) == 2:
932938
t, v = args
933939
cs = gp_Ax3(v.toPnt(), t.zDir.toDir(), t.xDir.toDir())

0 commit comments

Comments
 (0)