You can do something like this:
from __future__ import annotations Class Node: parent: Optional[Node]