On Tue, May 18, 2021 at 9:12 AM Stéfane Fermigier <sf@fermigier.com> wrote:

On Fri, Apr 23, 2021 at 7:18 PM Tin Tvrtković <tinchester@gmail.com> wrote:
Dear typing-sig,

I've noticed recently that there is practically no support for type-safe ORM/ODM projections in the broader Python ecosystem.

I was under the impression that SQLAlchemy is moving in this direction with the 1.4 release:

Why not:


class Car:
    brand: str = field(metadata={"key": True})
    model: str = field(metadata={"key": True})
    mileage: float

This is also built on top of sqlalchemy.