3 ms·
>only to find out you mistyped “pickle.dump” at the end. I know type hints are there, but somehow they never save me from such errors. You don't need type hint
by coldtea 6y ago
>only to find out you mistyped “pickle.dump” at the end. I know type hints are there, but somehow they never save me from such errors.
You don't need type hints for that, any old Python linter would have spotted this error...
- rich_sasha 6y agoThat, fine. What if you swap the file and the object? Etc. Linters help, but there is so much they don’t catch in practice.
- rbanffy 6y agoUnit tests should flag that.