Pylint can't find SQLAlchemy query member

前端 未结 13 1427
予麋鹿
予麋鹿 2021-01-30 08:25

I have a Flask (v0.10.1) application using Flask-SQLAlchemy (v2.0) and I\'m trying to configure Pylint to check it. Running with Python 3.4.2.

First error was:



        
13条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 08:53

    After a lot of investigation I was not able to make Pylint to understand this member, so I just added query to the generated-members list and the check is ignored.

    It's not a perfect solution but it works.

提交回复
热议问题