robotpy / robotpy-commands-v2

Python implementation of the WPILib Command Framework (2020+)
Other
2 stars 14 forks source link

FunctionalCommand: Assert lifecycle functions are callable #48

Closed auscompgeek closed 4 months ago

auscompgeek commented 4 months ago

It's common for less experienced Python programmers to forget to create lambdas, instead accidentally immediately calling a method and passing in None into whatever command factory they're using.

Fail early in debug mode (e.g. simulation/tests) so it's more obvious where such an error originates from.

virtuald commented 4 months ago

Folded into #46