I would like to use python's typing module to check and document function arguments and the like.
Let's say I wanted to require a list with two elements, both of which are ints (e.g. [1,2], [214,12] are good while [1,2,3] or [214., 12] are bad). Is there a way to specify this? (Or is there, maybe, some deep reason why this wouldn't make sense for a python list?)
I see that you can do something like this with Typing.Tuple. However, the functionality seems somewhat limited.