Instance of 'SQLAlchemy' has no 'Column' member (no-member)

前端 未结 6 2159
清酒与你
清酒与你 2020-12-13 02:25

I\'m currently trying to implement steam login into website. But I\'m unable to get pass this error within the code. I\'ve created the database object but it keeps showing t

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-13 03:03

    EDIT: After read and try np8's answer my previous answer is wrong there is a package you have to install, which is pylint-flask-sqlalchemy

    so the answer will be

    on your project directory find folder .vscode (if you dont have it, just create it) then create file settings.json and add this line

    {
        # You have to put it in this order to make it works
        "python.linting.pylintArgs": [
            "--load-plugins",
            "pylint_flask_sqlalchemy",
            "pylint_flask",                 # This package is optional
        ]
    }
    

    You also need to have pylint-flask-sqlalchemy and if you want to use pylint-flask install on your current python environment:

    pip install pylint-flask-sqlalchemy
    pip install pylint-flask
    

提交回复
热议问题