使用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
来源:oschina
链接:https://my.oschina.net/u/4370305/blog/4295116