
Nov. 25, 2021
11:48 p.m.
On 26/11/21 4:15 am, Stephen J. Turnbull wrote:
My understanding is that optional, incremental type hints are and have always been considered the primary use case for annotations by the BDFL
I'm not sure that's true. The way I remember it, back when annotations were first introduced, the BDFL didn't say that, or at least didn't say it very clearly. It sounded more like type hints were just one of many possible uses, and he encouraged people to experiment. There were even discussions about coming up with a convention to manage conflicting uses of annotations in the same code. That wouldn't have happened if typing were considered the only supported use. -- Greg