mirror of
https://github.com/rommapp/romm.git
synced 2026-02-19 07:50:57 +01:00
This change applies the guided migration process recommended by SQLAlchemy [1], up to step 4, to have declarative ORM models that better support Python typing. The change was tested by running `alembic check`, which does not find any schema changes. Errors reported by `mypy` go down to 170, from the original 223 in the current `master` commit. [1] https://docs.sqlalchemy.org/en/20/changelog/whatsnew_20.html#migrating-an-existing-mapping
5 lines
83 B
Python
5 lines
83 B
Python
from sqlalchemy.orm import DeclarativeBase
|
|
|
|
|
|
class BaseModel(DeclarativeBase): ...
|