anybox / pylint_flask_sqlalchemy

pylint_flask_sqlalchemy is a Pylint plugin to improve static code analysis of Flask-SQLAlchemy based projects.
MIT License
8 stars 5 forks source link

Instance of 'query' has no 'outerjoin' member (no-member) #2

Closed nioncode closed 2 years ago

nioncode commented 4 years ago

It would be great if the plugin would support the outerjoin member, currently pylint fails with:

models.py:47:12: E1101: Instance of 'query' has no 'outerjoin' member (no-member)

Sample code:

db.session.query(Book, Data)
.outerjoin(
    Data,
    Data.book_id == Book.id),
)
.all()
petrus-v commented 4 years ago

Thanks to ask new feature, do you have any plan create a merge request ?

nioncode commented 4 years ago

No, sorry, I have no idea how this plugin works and don't have time at the moment to investigate this further. Currently, I simply ignore the one line where I use outerjoin in pylint.