Why annotations?
It is handy to know which data types a function expects to receive or which data types you can expect a function to return.
That's why the Python community developed some mechanism (namely, PEP 3107 - Function Annotations and PEP 0484 - Type Hints) to provide some information for ...
read more