You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In robolink.py, the Item class has setAsCartesianTarget and setAsJointTarget methods. In both cases, these methods conclude with return self, which would return an instance of the Item class. While other methods around it have type-hinting for the returned values, this method is not type-hinted for 'Item'.
To fix, either:
Add ->'Item' type-hinting to the return values of those methods.
Remove return self from those methods. (Breaks backwards-compatibility, but this return behavior was never documented in the first place anyway.)
The text was updated successfully, but these errors were encountered:
In robolink.py, the
Item
class hassetAsCartesianTarget
andsetAsJointTarget
methods. In both cases, these methods conclude withreturn self
, which would return an instance of theItem
class. While other methods around it have type-hinting for the returned values, this method is not type-hinted for'Item'
.To fix, either:
->'Item'
type-hinting to the return values of those methods.return self
from those methods. (Breaks backwards-compatibility, but this return behavior was never documented in the first place anyway.)The text was updated successfully, but these errors were encountered: