首页 > 其他 > 详细

vscode中错误信息:Instance of 'Session' has no 'add' member处理方式

时间:2020-10-04 00:05:01      阅读:148      评论:0      收藏:0      [点我收藏+]

问题:

在使用MySQL ORM框架 sqlalchemy包时,我在创建sessionmaker实例Session后将创建的数据对象添加进去发现报错:Instance of ‘Session‘ has no ‘add‘ member pylint(no-member)[31,1],在网上查询后得知解决方案:

点击设置→右上角点击打开设置(json)→在大括号中已有代码下添加代码:

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

保存后就没有报错了。

参考博客:https://blog.csdn.net/weixin_42236031/article/details/106960189

vscode中错误信息:Instance of 'Session' has no 'add' member处理方式

原文:https://www.cnblogs.com/Meser1646/p/13765198.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!