I need to do a recursive definition inside the class, for example
class Formula:
root: str
first: Optional[Formula]
second: Optional[Formula]
def __init__(self, root: str, first: Optional[Formula] = None,
second: Optional[Formula] = None) -> None:
I get the following error : 'unresolved refrence Formula'
Any suggestions would be appreciated.