9
9
from .occ_impl .geom import Location
10
10
from .occ_impl .assembly import Color
11
11
from .occ_impl .solver import (
12
+ ConstraintKind ,
12
13
ConstraintSolver ,
13
14
ConstraintSpec as Constraint ,
14
15
UnaryConstraintKind ,
26
27
27
28
# type definitions
28
29
AssemblyObjects = Union [Shape , Workplane , None ]
29
- ConstraintKinds = Literal ["Plane" , "Point" , "Axis" , "PointInPlane" ]
30
30
ExportLiterals = Literal ["STEP" , "XML" , "GLTF" , "VTKJS" , "VRML" ]
31
31
32
32
PATH_DELIM = "/"
@@ -278,14 +278,12 @@ def _subloc(self, name: str) -> Tuple[Location, str]:
278
278
279
279
@overload
280
280
def constrain (
281
- self , q1 : str , q2 : str , kind : ConstraintKinds , param : Any = None
281
+ self , q1 : str , q2 : str , kind : ConstraintKind , param : Any = None
282
282
) -> "Assembly" :
283
283
...
284
284
285
285
@overload
286
- def constrain (
287
- self , q1 : str , kind : ConstraintKinds , param : Any = None
288
- ) -> "Assembly" :
286
+ def constrain (self , q1 : str , kind : ConstraintKind , param : Any = None ) -> "Assembly" :
289
287
...
290
288
291
289
@overload
@@ -295,14 +293,18 @@ def constrain(
295
293
s1 : Shape ,
296
294
id2 : str ,
297
295
s2 : Shape ,
298
- kind : ConstraintKinds ,
296
+ kind : ConstraintKind ,
299
297
param : Any = None ,
300
298
) -> "Assembly" :
301
299
...
302
300
303
301
@overload
304
302
def constrain (
305
- self , id1 : str , s1 : Shape , kind : ConstraintKinds , param : Any = None ,
303
+ self ,
304
+ id1 : str ,
305
+ s1 : Shape ,
306
+ kind : ConstraintKind ,
307
+ param : Any = None ,
306
308
) -> "Assembly" :
307
309
...
308
310
0 commit comments