2 ms·
I'm sure you know this already but you might want to check out: - https://docs.python.org/3/library/typing.html https://docs.python.org/3/library/typing.html
by hardwaresofton 8y ago
I'm sure you know this already but you might want to check out:
- https://docs.python.org/3/library/typing.html https://docs.python.org/3/library/typing.html
- http://mypy-lang.org http://mypy-lang.org
Also flake8 has also helped -- it's just a linter but using it in conjunction with the typing module and running that in a watch loop in another terminal window has done wonders for me.
- 01100011 8y agoAnd that's awesome, but if you're dealing with a large legacy codebase it will take a while to annotate your code. I love flake8. Properly tuned, it can be a great help. It saved my butt more than once.