Closed TheTripleV closed 2 years ago
:thinking: I think this is a bug in Pyright. Everything in the type stub should be read as though from __future__ import annotations
is active (and indeed our type stubs actually explicitly include that), so those return types should be completely valid.
It seems likely that the messed up units are interfering with this. Revisit after those are fixed?
It's fine now that the units resolve.
Problem description
Might not be an issue and may be a side-effect of robotpy/robotpy-wpimath#29.
From pathplannerlib's generated
.pyi
file:PathPlannerTrajectory
's methods come after internal classes. These methods are not recommended by VSCode and are considered errors by PyRight/PyLance.Operating System
MacOS
Installed Python Packages
No response
Reproducible example code
No response