I was reading through the PEP 484 -- Type Hints
when it is implemented, the function specifies the type of arguments it accept and return.
def greeting(name: str) -> str:
return 'Hello ' + name
My question is, What are the benefits of type hinting with Python if implemented?
I have used TypeScript where types are useful (as JavaScript is kinda foolish in terms of type identification), while Python being kinda intelligent with types, what benefits can type hinting bring to Python if implemented? Does this improve python performance?