From ba367293686c33a18cc196ecabad316621023ca0 Mon Sep 17 00:00:00 2001 From: David Halter Date: Thu, 20 Sep 2012 00:27:54 +0200 Subject: [PATCH] Array is an instance of list and not just the class -> fixed issue 2 of vim-jedi --- jedi/evaluate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jedi/evaluate.py b/jedi/evaluate.py index 90497933..08fcdeae 100644 --- a/jedi/evaluate.py +++ b/jedi/evaluate.py @@ -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]