menuconfig: Suppress spurious pylint tuple unpacking warning
pylint might be afraid that there'd be less than three elements in 'args', but there never is. Fixes this warning: scripts/kconfig/menuconfig.py:3184:8: W0632: Possible unbalanced tuple unpacking with sequence: left side has 3 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking) Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
47ef9ba6c2
commit
883b53101c
1 changed files with 1 additions and 1 deletions
|
@ -3181,7 +3181,7 @@ def _safe_addstr(win, *args):
|
|||
if len(args) == 2:
|
||||
attr = args[1]
|
||||
else:
|
||||
y, x, s = args[:3]
|
||||
y, x, s = args[:3] # pylint: disable=unbalanced-tuple-unpacking
|
||||
if len(args) == 4:
|
||||
attr = args[3]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue