News for hackers. Stuff that matters.
Re:Functional Python Programming by linkdd on Saturday June 10, 2023 @06:27AM (#36269289)
> 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.

There are no comments on this comment yet.