mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
#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. ```