Files
allwpilib/wpilibc
PJ Reiniger 329d214b90 [robotpy] Fix pybind11 stubgen (#9034)
#8787 Added a new compound unit that was tripping up the pybind11
stubgen when trying to mirror over to mostrobotpy land. This fixes the
error, and also cleans up some `create-imports` things.

```
[680/680] Generating semiwrap/modules/_wpimath.pyi with a custom command
FAILED: [code=1] semiwrap/modules/_wpimath.pyi 
/usr/local/bin/python -m semiwrap.cmd.make_pyi wpimath._wpimath wpimath/_wpimath.pyi semiwrap/modules/_wpimath.pyi -- wpimath /tmp/build-via-sdist-2hfn0_cv/robotpy_wpimath-2027.0.0a6.post1/wpimath/__init__.py wpimath._init__wpimath semiwrap/_init__wpimath.py wpimath._wpimath semiwrap/modules/_wpimath.cpython-311-x86_64-linux-gnu.so
pybind11_stubgen - [  ERROR] In wpimath._wpimath.AntiTipping.__init__ : Invalid expression 'wpi::units::unit_t<wpi::units::unit<std::ratio<1l'
pybind11_stubgen - [  ERROR] In wpimath._wpimath.AntiTipping.getP : Invalid expression 'wpi::units::unit_t<wpi::units::unit<std::ratio<1l, 1l>, wpi::units::base_unit<std::ratio<1l, 1l>, std::ratio<0l, 1l>, std::ratio<-1l, 1l>, std::ratio<-1l, 1l>, std::ratio<0l, 1l>, std::ratio<0l, 1l>, std::ratio<0l, 1l>, std::ratio<0l, 1l>, std::ratio<0l, 1l> >, std::ratio<0l, 1l>, std::ratio<0l, 1l> >, double, wpi::units::linear_scale>'
pybind11_stubgen - [  ERROR] In wpimath._wpimath.AntiTipping.setP : Invalid expression 'wpi::units::unit_t<wpi::units::unit<std::ratio<1l'
Warning: stubgen - [WARNING] Raw C++ types/values were found in signatures extracted from docstrings.
Please check the corresponding sections of pybind11 documentation to avoid common mistakes in binding code:
 - https://pybind11.readthedocs.io/en/latest/advanced/misc.html#avoiding-cpp-types-in-docstrings
 - https://pybind11.readthedocs.io/en/latest/advanced/functions.html#default-arguments-revisited
pybind11_stubgen - [   INFO] Terminating due to previous errors
ninja: build stopped: subcommand failed.
```
2026-06-28 16:42:57 -07:00
..
2025-11-07 23:09:21 -08:00