robotpy / robotpy-wpilib-utilities

Useful utility functions/objects for RobotPy
BSD 3-Clause "New" or "Revised" License
11 stars 19 forks source link

magicbot: Add type stub for magic_reset #161

Closed auscompgeek closed 4 years ago

auscompgeek commented 4 years ago

This makes user code type-check without paying any runtime cost, with the caveat that this doesn't behave correctly only in __init__.

auscompgeek commented 4 years ago

If you prefer that this lives in the code itself, I can do that instead, with the caveat that the behaviour will change in __init__.