Possible unbalanced tuple unpacking with sequence

Posted awpatp

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Possible unbalanced tuple unpacking with sequence相关的知识,希望对你有一定的参考价值。

使用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的主要内容,如果未能解决你的问题,请参考以下文章

unbalanced parenthesis

Unbalanced calls to begin/end appearance transitions for XXX

agc045_b 01 Unbalanced

CompositeDisposable.clear 导致 OkHttp 抛出 java.lang.IllegalStateException: Unbalanced enter/exit

Sum Queries? CodeForces - 1217E (线段树)

One possible version是啥意思?