Skip to content

Commit b9167e3

Browse files
authored
Merge pull request #723 from RubenRubens/tuple_on_location
raise TypeError when Location param is a tuple
2 parents b0a8cb2 + d5cb4c6 commit b9167e3

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
@@ -948,6 +948,12 @@ def __init__(self, *args):
948948
return
949949
elif isinstance(t, gp_Trsf):
950950
T = t
951+
elif isinstance(t, (tuple, list)):
952+
raise TypeError(
953+
"A tuple or list is not a valid parameter, use a Vector instead."
954+
)
955+
else:
956+
raise TypeError("Unexpected parameters")
951957
elif len(args) == 2:
952958
t, v = args
953959
cs = gp_Ax3(v.toPnt(), t.zDir.toDir(), t.xDir.toDir())

0 commit comments

Comments
 (0)