VSCODE doesn't recognize subclassing of db.Model
VSCODE doesn't recognize subclassing of db.Model Question: I have a Flask Project with Flask-SQLAlchemy and a custom Model class. For type hinting I modified the SQLAlchemy class like this: class CustomSQLAlchemy(flask_sqlalchemy.SQLAlchemy): Model: CustomModel After that, VSCODE does show db.Model as a CustomModel: However, when adding attributes I don’t get any suggestions for attributes from db.Model …
Total answers: 2