Imagine I have a data structure of the following form:
[0, 1, [2, [3, 4, [5]], 6], []]
I want to create a TypeHint to describe this structure, but the structure itself follows a recursive pattern. Would this be the correct way to declare the type variable?
NestedInts = List[Union[int, 'NestedInts']]
I tried this in PyCharm, and the IDE just gives up and introspects it as type Any