James Briggs
1 min readJun 15, 2020

--

Hey Luca, I suppose whether or not this feels like a big change is completely down to perspective, but from my point of view, the reasons this are:

The import syntax and lack of need to import the typing representation of the datatypes - allowing us to just use the native type.

I find this exciting as my favorite use of type hinting across any language that I have used is that in TypeScript. This new syntax brings the Python type syntax incredibly close to that of TypeScript, which I think is perfect.

On a more functional side - prior to this having two representations of the same datatype (typing.Dict and dict) is confusing and suggests that there are two different datatypes.

Both of these two together influence a more standardized use of type hinting - something I believe Python currently lacks.

--

--

James Briggs

Freelance ML engineer learning and writing about everything. I post a lot on YT https://www.youtube.com/c/jamesbriggs