News for hackers. Stuff that matters.
Re:Things to use in Python 3 by BlackFly on Wednesday May 15, 2019 @04:37AM (#19917442)
They are available in the runtime, so you can do runtime reflection on the annotations and perform dependency injection if that is your thing. In that sense they do something: they provide information to the runtime which you can use if you want.
Re:Things to use in Python 3 by DonaldPShimoda on Wednesday May 15, 2019 @12:49PM (#19921263)
I think this is just a semantic argument at this point, but to me what you mention isn't evidence of the annotations doing anything. They make it possible for things to be done, just as I said.

The distinction I'm drawing is to statically-typed languages where simply adding annotations will actually change semantics of the program (e.g., by forcing a downcast or something).

But you're absolutely right that annotations can be useful for many things!