1
0
forked from VimPlug/jedi

array indexing works now also with variables

This commit is contained in:
David Halter
2012-08-06 17:47:43 +02:00
parent 8780199a33
commit c154bdad0e
5 changed files with 56 additions and 10 deletions

View File

@@ -830,7 +830,8 @@ class Array(Call):
DICT = 'dict'
SET = 'set'
def __init__(self, arr_type, parent_stmt=None, parent=None, values=None):
def __init__(self, arr_type=NOARRAY, parent_stmt=None, parent=None,
values=None):
super(Array, self).__init__(None, arr_type, parent_stmt, parent)
self.values = values if values else []