DEV Community

Discussion on: 1-minute guide to real constants in Python

Collapse
 
nbelakovski profile image
nbelakovski

Some interesting conversations here about the general value (or detriment) of the type annotations.

I thought it was really interesting to read in the non-goals of PEP 484 (which introduced type annotations) that type annotations will never be required, "even by convention" (python.org/dev/peps/pep-0484/#non-...)

This says to me that the annotations are mostly geared towards large scale Python projects that probably should have been written in/should be rewritten in a statically typed language. It follows that smaller scale Python projects are meant to remain annotation free. Personally, I think this gives the best of both worlds in providing a way for large scale projects to gain some stability without over complicating the language.