title: How to make a TypeVar (Generic) type in python with dataclass constraint?
body: <p>Is there a way to constraint some TypeVar to be dataclass? for example something like:</p>
  
  <pre><code>A = TypeVar('A', dataclass) # Wrong code!
  </code></pre>