SyntaxFix
Write A Post
Hire A Developer
Questions
Starting in version 0.7.9 you can use the filter operator .isnot instead of comparing constraints, like this:
.isnot
query.filter(User.name.isnot(None))
This method is only necessary if pep8 is a concern.
source: sqlalchemy documentation