sqlalchemy-stubs icon indicating copy to clipboard operation
sqlalchemy-stubs copied to clipboard

add delete method on scoped_session

Open burnettk opened this issue 2 years ago • 1 comments

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.

burnettk avatar Oct 20 '22 21:10 burnettk

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 20 '22 21:10 CLAassistant