pylint
pylint copied to clipboard
False `unbalanced-tuple-unpacking` report
Bug description
def f(x):
l = []
for i in x:
l.append(i)
return l
a, b = f('12')
Configuration
No response
Command used
pylint mytest.py | grep 0632
Pylint output
mytest.py:7:0: W0632: Possible unbalanced tuple unpacking with sequence defined at line 3: left side has 2 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)
Expected behavior
No issue raised.
Pylint version
pylint 2.11.1
astroid 2.8.6
Python 3.10.1 (main, Dec 6 2021, 22:25:40) [Clang 13.0.0 (clang-1300.0.29.3)]
OS / Environment
MacOS Monterey
Additional dependencies
No response