4 ms·
What do you mean you can't trust them? If you write a type hint in your code and then run mypy on it, it will tell you whether the type is being violated. And,
by tehnub 5y ago
What do you mean you can't trust them? If you write a type hint in your code and then run mypy on it, it will tell you whether the type is being violated. And, PyCharm has a type checker built in that lets you know as you're coding.
- lmm 5y ago> If you write a type hint in your code and then run mypy on it, it will tell you whether the type is being violated. Only if the type hints for all the libraries you use are correct (and in practice they're not).
- mark_l_watson 5y agoAh, thanks. I think I am going to give type hints another try.