Array is an instance of list and not just the class -> fixed issue 2 of vim-jedi

This commit is contained in:
David Halter
2012-09-20 00:27:54 +02:00
parent 076a537801
commit ba36729368

View File

@@ -864,6 +864,7 @@ class Array(use_metaclass(CachedMetaClass, parsing.Base)):
"""
# `array.type` is a string with the type, e.g. 'list'.
scope = get_scopes_for_name(builtin.builtin_scope, self._array.type)[0]
scope = Instance(scope)
names = scope.get_defined_names()
return [ArrayElement(n) for n in names]