3 ms·
> I'm not into types [in Python] In Python type hints are just that: hints. mypy is a very poor static analyzer, and a lot of Python code (especially in frame
by linkdd 3y ago
> I'm not into types [in Python]
In Python type hints are just that: hints.
mypy is a very poor static analyzer, and a lot of Python code (especially in frameworks like Django) is inherently dynamic and cannot be type-checked. And that's ok.
Though, documenting your API with type-hints really helps, especially with VSCode (via pyright) popovers when you hover a symbol/function.