Is there a way to constraint some TypeVar to be dataclass? for example something like:
A = TypeVar('A', dataclass) # Wrong code!
Is there a way to constraint some TypeVar to be dataclass? for example something like:
A = TypeVar('A', dataclass) # Wrong code!