title: dynamic type based on type variable
body: <p>I know it sounds mad, but.. Variable of type of another variable of type of <code>typing.Type</code>?</p>
  <p>Basically, I want <code>data</code> to be an instance of type <code>model</code></p>
  <pre class="lang-py prettyprint-override"><code>T = TypeVar(&quot;T&quot;, bound=Type[dict])
  
  class A:
      def __init__(self, model: T) -&gt; None:
          self.model = model
          self.data: model = model(some=&quot;data&quot;)
  
  a = A(dict)
  </code></pre>
  <p>With this code, the typehint on <code>data</code> is <code>typing.Any</code>. I want it to be <code>dict</code></p>