title: type hints after Sql alchemy join (2.0 style)
body: <p>I'm currently able to join two tables (ORM objects) and access the results.
  Here is my code:</p>
  <pre><code>statement = select(User, Company).where(User.username == credentials.username)\
                                     .where(User.company_id == Company.company_id)
  result = (await db.execute(statement)).one()
  user, company = result
  </code></pre>
  <p>If I do this: <code>print(user.username)</code>, it prints the correct information, but I get no IDE help in terms of autocompletion (for the IDE, user is just a dict, I would like that the IDE knows it is an User object).</p>
  <p>In order to avoid possible mistakes, I would like to know if there is a way to cast the results so they are linked to the proper object and I can benefit autocompletion.</p>