robotpy / robotpy-wpilib

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

[BUG]: bad error message for SpeedControllerGroup construction #714

Closed virtuald closed 1 year ago

virtuald commented 2 years ago

Problem description

The error message generated is useless, we should fix it.

Operating System

Windows, MacOS, Linux, RoboRIO

Installed Python Packages

No response

Reproducible example code

>>> import wpilib
>>> wpilib.SpeedControllerGroup(1,2,3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Unable to cast Python instance to C++ type (compile in debug mode for details)