Command.getRequirements() has a bad return type
Closed this issue · 3 comments
TheTripleV commented
>>> wpilib.command.Command().getRequirements()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Unable to convert function return value to a Python type! The signature was
(self: wpilib.command._commands_v1.Command) -> wpi::SmallPtrSetImpl<frc::Subsystem * __ptr64>
auscompgeek commented
Yeah, this is going to need a type caster in robotpy-wpiutil I think. I'm sure I've seen a couple of other instances of SmallSets as well.
virtuald commented
This is more than just a type caster I think, since it's a list of pointers.