@@ -271,12 +271,10 @@ def Ts(self) -> Union[NDArray, None]:
271
271
return self ._Ts
272
272
273
273
@overload
274
- def ets (self : "Link" ) -> ETS :
275
- ... # pragma: nocover
274
+ def ets (self : "Link" ) -> ETS : ... # pragma: nocover
276
275
277
276
@overload
278
- def ets (self : "Link2" ) -> ETS2 :
279
- ... # pragma: nocover
277
+ def ets (self : "Link2" ) -> ETS2 : ... # pragma: nocover
280
278
281
279
@property
282
280
def ets (self ) -> ETS :
@@ -302,13 +300,11 @@ def ets(self) -> ETS:
302
300
303
301
@ets .setter
304
302
@overload
305
- def ets (self : "Link" , new_ets : ETS ):
306
- ... # pragma: nocover
303
+ def ets (self : "Link" , new_ets : ETS ): ... # pragma: nocover
307
304
308
305
@ets .setter
309
306
@overload
310
- def ets (self : "Link2" , new_ets : ETS2 ):
311
- ... # pragma: nocover
307
+ def ets (self : "Link2" , new_ets : ETS2 ): ... # pragma: nocover
312
308
313
309
@ets .setter
314
310
def ets (self , new_ets ):
@@ -394,15 +390,7 @@ def _repr_pretty_(self, p, cycle):
394
390
395
391
# -------------------------------------------------------------------------- #
396
392
397
- @overload
398
- def copy (self : "Link" ) -> "Link" :
399
- ... # pragma: nocover
400
-
401
- @overload
402
- def copy (self : "Link2" ) -> "Link2" :
403
- ... # pragma: nocover
404
-
405
- def copy (self ):
393
+ def copy (self : Self ) -> Self :
406
394
"""
407
395
Copy of link object
408
396
@@ -428,7 +416,7 @@ def __deepcopy__(self, memo):
428
416
joint_name = deepcopy (self ._joint_name )
429
417
m = deepcopy (self .m )
430
418
r = deepcopy (self .r )
431
- I = deepcopy (self .I )
419
+ I = deepcopy (self .I ) # noqa
432
420
Jm = deepcopy (self .Jm )
433
421
B = deepcopy (self .B )
434
422
Tc = deepcopy (self .Tc )
@@ -466,12 +454,10 @@ def __deepcopy__(self, memo):
466
454
# -------------------------------------------------------------------------- #
467
455
468
456
@overload
469
- def v (self : "Link" ) -> Union ["ET" , None ]:
470
- ... # pragma: nocover
457
+ def v (self : "Link" ) -> Union ["ET" , None ]: ... # pragma: nocover
471
458
472
459
@overload
473
- def v (self : "Link2" ) -> Union ["ET2" , None ]:
474
- ... # pragma: nocover
460
+ def v (self : "Link2" ) -> Union ["ET2" , None ]: ... # pragma: nocover
475
461
476
462
@property
477
463
def v (self ):
@@ -1130,7 +1116,11 @@ def nchildren(self) -> int:
1130
1116
1131
1117
def closest_point (
1132
1118
self , shape : Shape , inf_dist : float = 1.0 , skip : bool = False
1133
- ) -> Tuple [Union [int , None ], Union [NDArray , None ], Union [NDArray , None ],]:
1119
+ ) -> Tuple [
1120
+ Union [int , None ],
1121
+ Union [NDArray , None ],
1122
+ Union [NDArray , None ],
1123
+ ]:
1134
1124
"""
1135
1125
Finds the closest point to a shape
1136
1126
@@ -1368,7 +1358,7 @@ def format(l, fmt, val): # noqa
1368
1358
return dyn
1369
1359
1370
1360
def _format_param (
1371
- self , l , name , symbol = None , ignorevalue = None , indices = None
1361
+ self , l , name , symbol = None , ignorevalue = None , indices = None # noqa
1372
1362
): # noqa # pragma nocover
1373
1363
# if value == ignorevalue then don't display it
1374
1364
0 commit comments