码迷,mamicode.com
首页 > 其他好文 > 详细

Possible unbalanced tuple unpacking with sequence

时间:2020-05-28 16:44:36      阅读:119      评论:0      收藏:0      [点我收藏+]

标签:怎样   gen   ever   possible   blog   disable   html   tle   解决   

使用Visual Studio Code, 遇到这样的警告,看着不舒服,怎样才能解决掉这个警告呢?

技术图片


"owner": "python",
"code": "unbalanced-tuple-unpacking",
"severity": 8,
"message": "Possible unbalanced tuple unpacking with sequence: left side has 4 label(s), right side has 0 value(s)",
"source": "pylint"


解决方法就是在报出警告的代码行的后面加上注释:“# pylint: disable=unbalanced-tuple-unpacking”。

技术图片


参考资料

=========

https://github.com/PyCQA/pylint/issues/2061

Possible unbalanced tuple unpacking with sequence

标签:怎样   gen   ever   possible   blog   disable   html   tle   解决   

原文地址:https://www.cnblogs.com/awpatp/p/12981273.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!