by zelly · 6y ago · 0 comments
It's to enable tooling, but not just autocomplete. The main purpose of typing is preventing type-related bugs, though making editor autocompletion and other editor information more robust is a not-insignificant additional benefit.
PEP 484 (created 29-Sep-2014, accepted 22-May-2015) wasn't motivated by VS Code (announced April 29, 2015).
Edit: Microsoft Python Language Server has it (i read)
With CPython they don't. Cython actually uses annotations to optimize the generated code.