sqlalchemy-stubs
sqlalchemy-stubs copied to clipboard
add delete method on scoped_session
for this sort of code:
user = UserModel.query.filter_by(username="awesomeuser").first()
db.session.delete(user) # type: ignore, until now
db.session.commit()
not sure if it's a new issue in some version of sqlalchemy. i'm on SQLAlchemy-1.4.42 and Flask-SQLAlchemy-3.0.2.