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 when using super for instance. I think it has something to do with the fact that db.Model isn't hinted as a class like ToolTimeMixIn. I know I can use db.Model instead of super(), but I personally find it inconvenient.
I am using Pylance and Visual Studio IntelliCode with a Python 3.9 venv. I know it is unlikely, but does someone have experience with this?