title: Create dataclass that accepts type like List[int]
body: <p>Is it possible to create a dataclass in Python that accepts a type like <code>List[int]</code> does?</p>
  <p>What I want to do is pass the type to one of the dataclass fields, e.g.</p>
  <pre class="lang-py prettyprint-override"><code>@dataclass
  class PagedResponse[type]:
      data: List[type]
      pages: int
  </code></pre>