4 ms·
Also, in Python (unlike TypeScript or PHP) you need to be sure that the code regularly passes type checking to have confidence in your type annotations. I've d
by sgorawski 3y ago
Also, in Python (unlike TypeScript or PHP) you need to be sure that the code regularly passes type checking to have confidence in your type annotations.
I've dealt with my share of code with types that were almost correct but not really and it's been quite frustrating.
For interested I've written an article about it: https://medium.com/@sgorawski/python-types-have-an-expectations-problem-ea71a8645ce8 https://medium.com/@sgorawski/python-types-have-an-expectati...