Possible unbalanced tuple unpacking with sequence

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

image


"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”。

image


参考资料

=========

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

posted on 2020-05-28 15:44  中道学友  阅读(792)  评论(0编辑  收藏  举报

导航

技术追求准确,态度积极向上