title: How to use Python type hints with Django QuerySet?
body: <p>Is it possible to specify type of records in Django QuerySet with Python type hints? Something like <code>QuerySet[SomeModel]</code>?</p>
  
  <p>For example, we have model:</p>
  
  <pre><code>class SomeModel(models.Model):
      smth = models.IntegerField()
  </code></pre>
  
  <p>And we want to pass QuerySet of that model as param in func:</p>
  
  <pre><code>def somefunc(rows: QuerySet):
      pass
  </code></pre>
  
  <p>But how to specify type of records in QuerySet, like with <code>List[SomeModel]</code>:</p>
  
  <pre><code>def somefunc(rows: List[SomeModel]):
      pass
  </code></pre>
  
  <p>but with QuerySet?</p>