I have the Node class and the Node class has 2 children, child A and B, but they are the same class with the same structure, because the child could have its own child.
The code is in python, and the language don't let my do the next, mark me an error:
class Node:
a: Node
b: Node
name: str
value: int
Is there a way to do that, the Object itself nested?
My regards