Consider the following dataclass with Python:
from dataclasses import dataclass
@dataclass()
class Foo:
some_id: int
name: str
child: Foo # <-- failure here
What's the proper syntax for this recursive definition?
Consider the following dataclass with Python:
from dataclasses import dataclass
@dataclass()
class Foo:
some_id: int
name: str
child: Foo # <-- failure here
What's the proper syntax for this recursive definition?