4 ms·
> now I rely on the types to do that for me and check in an embarrassingly high number of errors whenever I try to work in Python But you can write type hints
by sametmax 9y ago
> now I rely on the types to do that for me and check in an embarrassingly high number of errors whenever I try to work in Python
But you can write type hints in Python and get your tooling to tell you when something is wrong.
Personally I got mypy as a pre-commit hook, and vscode run it on each save, making my code lighting up like a xmas tree if I mess up.