mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
fixed PY-4358 Tuple assignment balance is incorrect: extend inspection for sequnce literals other then tuples
This commit is contained in:
@@ -10,4 +10,9 @@
|
||||
<line>2</line>
|
||||
<description>Need more values to unpack</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>test.py</file>
|
||||
<line>5</line>
|
||||
<description>Need more values to unpack</description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
@@ -10,6 +10,11 @@
|
||||
<line>2</line>
|
||||
<description>Need more values to unpack</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>test.py</file>
|
||||
<line>5</line>
|
||||
<description>Need more values to unpack</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>test.py</file>
|
||||
<line>8</line>
|
||||
|
||||
@@ -6,4 +6,10 @@ a, b = <warning descr="Too many values to unpack">c</warning>
|
||||
|
||||
#PY-4360
|
||||
(a, b) = <warning descr="Too many values to unpack">1, 2, 3</warning>
|
||||
(a, b) = <warning descr="Too many values to unpack">(1, 2, 3)</warning>
|
||||
(a, b) = <warning descr="Too many values to unpack">(1, 2, 3)</warning>
|
||||
|
||||
#PY-4358
|
||||
a, b = <warning descr="Too many values to unpack">[1, 2, 3]</warning>
|
||||
a, b = <warning descr="Need more values to unpack">'str'</warning>
|
||||
a, b = <warning descr="Too many values to unpack">{1, 2, 3}</warning>
|
||||
a, b = <warning descr="Too many values to unpack">{1:2, 2: 3, 3:4}</warning>
|
||||
Reference in New Issue
Block a user