robotpy / robotpy-wpilib

Moved to https://github.com/robotpy/mostrobotpy
https://robotpy.github.io
Other
169 stars 59 forks source link

Fix empty sendable chooser #687

Closed virtuald closed 3 years ago

virtuald commented 3 years ago

Demonstration of prior error:

    def test_sendable_chooser():
        chooser = wpilib.SendableChooser()
>       assert chooser.getSelected() is None
E       TypeError: Unable to convert function return value to a Python type! The signature was
E               (self: wpilib._wpilib.SendableChooser) -> object