Declarative base class should subclass DeclarativeBase
Background
In SQLAlchemy 2.0, the DeclarativeBase
superclass replaces the use of declarative_base()
, which ELLA currently is using. Making this change also solves the problem of mypy not being able to handle dynamically generated base classes.
Implementation
Replace the use of declarative_base()
with a base class that inherits from DeclarativeBase
. Deal with any resulting problems.
Edited by Vetle Simensen