Aug-10-2021, 08:10 AM
(Aug-10-2021, 06:46 AM)Gribouillis Wrote: I don't see what is so modern with the idea of checking the arguments type at runtime. It looks like an extreme regression to me. Duck typing is what made Python successful. Otherwise we can use a statically typed language. It will have better performance.Yes i do agree,have not used type hint so much myself and that strongtyping do check at runtime is kind of interesting (maybe useful in some cases).
Lager companies that use Python so is now type annotations heavily used.
Our journey to type checking 4 million lines of Python
I did not like type annotations much at first,but i see that in some cases that it can help readability and documentation of code
In newer Python version eg 3.9 they clean it more up PEP 585.