3 ms·
> Agreed, typically you don't add new syntax to a language only to silently ignore it. The only new syntax here is variable and function annotations and it all
by codethief 4y ago
> Agreed, typically you don't add new syntax to a language only to silently ignore it.
The only new syntax here is variable and function annotations and it allows you to put anything into the annotation, so it makes sense the compiler would ignore them. Type hints are one possible usage of such annotations but they are not part of the syntax (because the types are just regular Python objects).