I have a problem with my TypeVar definition.
My function requires a tuple of tuples as a parameter. The main tuple can have as many as tuples as components but they don't have to share the same type between them.
But the component of the tuple inside the main tuple have to share the same type.
Here a simplified example of code:
The following code work in python but I have a warning in Pycharm
form((("prompt", str, "default"),
("prompt", int, 10),
("prompt", str, "default"),
("prompt", float, .5)))
I defined my function like that:
ValueType = TypeVar('ValueType', str, int, float, bool)
InputDefinitionType = Tuple[str, Type[ValueType], ValueType]
def form(input_def: Tuple[InputDefinitionType, ...])
...
How can I 'reset' the TypeVar group to only match the types inside the tuple contained inside the main tuple but not across the main tuple itself?
