Pylint can't find SQLAlchemy query member

前端 未结 13 1650
予麋鹿
予麋鹿 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:59

    Use pylint plugin pylint-flask-sqlalchemy

    pip install pylint_flask_sqlalchemy
    

    And in your settings.json of VisualCode

    "python.linting.pylintArgs": ["--load-plugins", "pylint_flask_sqlalcheny"]
    

提交回复
热议问题