3 ms·
Are there any tools that can use the annotations and watch a running script and warn you if they’re violated? Maybe during your test suite. Or linters could d
by mrfusion 8y ago
Are there any tools that can use the annotations and watch a running script and warn you if they’re violated? Maybe during your test suite.
Or linters could do some basic analysis.
- uryga 8y agooff the top of my head there's pytypes¹ and typeguard² – both look at type annotations and enforce them at runtime. ¹ https://github.com/Stewori/pytypes/ https://github.com/Stewori/pytypes/ ² https://github.com/agronholm/typeguard https://github.com/agronholm/typeguard