mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed tuple assignment with numeric literal
This commit is contained in:
@@ -1095,6 +1095,8 @@ public class PyUtil {
|
||||
valuesLength = ((PyDictLiteralExpression)expression).getElements().length;
|
||||
else if (expression instanceof PyStringLiteralExpression)
|
||||
valuesLength = ((PyStringLiteralExpression)expression).getStringValue().length();
|
||||
else if (expression instanceof PyNumericLiteralExpression)
|
||||
valuesLength = 1;
|
||||
else if (expression instanceof PyCallExpression) {
|
||||
PyCallExpression call = (PyCallExpression)expression;
|
||||
if (call.isCalleeText("dict"))
|
||||
|
||||
Reference in New Issue
Block a user