fastapi-sqlalchemy-asyncpg
fastapi-sqlalchemy-asyncpg copied to clipboard
static type checking
options are: mypy, pyright, pyre
Hello! I'm not sure if I need to mention this here, but in case it's helpful to anyone, if you want to use MyPy with Alchemy 2.0, you'll need to modify the Base model class. Specifically, replace @declared_attr
with @declared_attr.directive
.
Referance here