mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-30 18:25:22 +08:00
Array is an instance of list and not just the class -> fixed issue 2 of vim-jedi
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user