[Python-ideas] Lessons from typing hinting Whoosh (PEP484)

Matt Chaput matt at whoosh.ca
Mon Nov 16 10:48:54 EST 2015


> like... type aliases? https://www.python.org/dev/peps/pep-0484/#type-aliases

As I read it, that's just a way to avoid having to spell out the same type definition more than once. It's not the same as being able to define a new type for the type system which Python sees as a plain old primitive type.

I'm probably not using the right programming language theory word for this concept :)

Matt



More information about the Python-ideas mailing list