Pylint can't find SQLAlchemy query member

前端 未结 13 1423
予麋鹿
予麋鹿 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 09:07

    After trying a lot of these options, plugins and adding query and all. The only solution that erased those scoped_session errors was using:

    1. pylint --generate-rcfile > pylintrc
    2. look for the ignored_classes and add scoped_session after the comma, leave no space
    3. Run pylint on your module again.
    0 讨论(0)
提交回复
热议问题