title: Use django model class into TypedDict?
body: <p>I am creating an API that takes the fields of a model.
  Say</p>
  <pre class="lang-py prettyprint-override"><code>from django.db import models
  
  class Student(models.Model):
      name = models.CharField(max_length=24)
      age = models.IntegerField()
      address = models.CharField(blank=True)
  </code></pre>
  <p>I want to make an API that takes argument something like this.</p>
  <pre class="lang-py prettyprint-override"><code>from typing import Optional, TypedDict
  from models import Student
  from django.forms.models import model_to_dict
  
  
  class StudentInfo(TypedDict):
      name: str
      age: int
      address: Optional[str]
  
  def createStudent(req:StudentInfo) -&gt; StudentInfo:
      data = Student.objects.create(name=req.name, age=req.age, address=req.address)
      return {&quot;data&quot;: model_to_dict(data)}
  </code></pre>
  <p>The above code will work fine, but there I have to define the same type for <strong>Student</strong> which I have already defined in the model.
  <strong>Can I use the model definition as the param type annotation instead of defining it again</strong>?</p>